Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
Kivii.Client.Lims.ReportPrinter
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陶然
Kivii.Client.Lims.ReportPrinter
Commits
d6b99bcf
Commit
d6b99bcf
authored
Nov 11, 2024
by
Neo Turing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化打印参数
parent
cc57d2a4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
FrmMain.Designer.cs
Src/FrmMain.Designer.cs
+1
-1
FrmMain.cs
Src/FrmMain.cs
+4
-4
AssemblyInfo.cs
Src/Properties/AssemblyInfo.cs
+2
-2
No files found.
Src/FrmMain.Designer.cs
View file @
d6b99bcf
...
@@ -775,7 +775,7 @@
...
@@ -775,7 +775,7 @@
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Icon
=
((
System
.
Drawing
.
Icon
)(
resources
.
GetObject
(
"$this.Icon"
)));
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
Margin
=
new
System
.
Windows
.
Forms
.
Padding
(
2
);
this
.
Name
=
"FrmMain"
;
this
.
Name
=
"FrmMain"
;
this
.
Text
=
"K5报告打印客户端V4.3_24.11
06
0"
;
this
.
Text
=
"K5报告打印客户端V4.3_24.11
11
0"
;
this
.
Activated
+=
new
System
.
EventHandler
(
this
.
FrmMain_Activated
);
this
.
Activated
+=
new
System
.
EventHandler
(
this
.
FrmMain_Activated
);
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmMain_FormClosing
);
this
.
FormClosing
+=
new
System
.
Windows
.
Forms
.
FormClosingEventHandler
(
this
.
FrmMain_FormClosing
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
this
.
Load
+=
new
System
.
EventHandler
(
this
.
FrmMain_Load
);
...
...
Src/FrmMain.cs
View file @
d6b99bcf
...
@@ -494,9 +494,9 @@ namespace Kivii.Client.Lims.ReportPrinter
...
@@ -494,9 +494,9 @@ namespace Kivii.Client.Lims.ReportPrinter
//args.Add("-dBitsPerPixel=24"); // 提高颜色深度
//args.Add("-dBitsPerPixel=24"); // 提高颜色深度
// 增强抗锯齿效果
// 增强抗锯齿效果
args
.
Add
(
"-dTextAlphaBits=
4
"
);
// 提升文字抗锯齿效果
args
.
Add
(
"-dTextAlphaBits=
1
"
);
// 提升文字抗锯齿效果
args
.
Add
(
"-dGraphicsAlphaBits=
4
"
);
// 提升图像抗锯齿效果
args
.
Add
(
"-dGraphicsAlphaBits=
1
"
);
// 提升图像抗锯齿效果
args
.
Add
(
"-dDeviceGamma=0.8"
);
// 视效果进行调整
// 选择打印的页面范围(若只打印第一页)
// 选择打印的页面范围(若只打印第一页)
if
(
cbxFirstPage
.
Checked
)
if
(
cbxFirstPage
.
Checked
)
{
{
...
@@ -506,7 +506,7 @@ namespace Kivii.Client.Lims.ReportPrinter
...
@@ -506,7 +506,7 @@ namespace Kivii.Client.Lims.ReportPrinter
// 打印设备配置
// 打印设备配置
args
.
Add
(
"-c"
);
args
.
Add
(
"-c"
);
args
.
Add
(
$"\"mark /NoCancel true /BitsPerPixel 24 /OutputFile(%printer%
{
_printerSettings
.
PrinterName
}
) /QueryUser 3 /UserSettings<</DocumentName (
{
job
.
Title
}
) /MaxResolution 3
2
0>>(mswinpr2) finddevice putdeviceprops setdevice\""
);
args
.
Add
(
$"\"mark /NoCancel true /BitsPerPixel 24 /OutputFile(%printer%
{
_printerSettings
.
PrinterName
}
) /QueryUser 3 /UserSettings<</DocumentName (
{
job
.
Title
}
) /MaxResolution 3
6
0>>(mswinpr2) finddevice putdeviceprops setdevice\""
);
// 指定要打印的文件
// 指定要打印的文件
args
.
Add
(
"-f"
);
args
.
Add
(
"-f"
);
...
...
Src/Properties/AssemblyInfo.cs
View file @
d6b99bcf
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
...
@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("5.4.2024.11
06
0")]
[assembly: AssemblyVersion("5.4.2024.11
11
0")]
[assembly: AssemblyFileVersion("5.4.2024.11
06
0")]
[assembly: AssemblyFileVersion("5.4.2024.11
11
0")]
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment