嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 2 元微信扫码支付:2 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
c# 打印GRid 打印模板
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
GridppReport grdrpt = new GridppReport();
grdrpt.LoadFromFile("C:\\Users\\Keven.Pang\\Documents\\Visual Studio 2013\\Projects\\G \\G \\bin\\Debug\\住院登记入院腕带.grf");
grdrpt.ParameterByName("姓名").AsString = "姓名:abc";
grdrpt.ParameterByName("性别").AsString = "性别:efd";
grdrpt.ParameterByName("年龄").AsString = "年龄:123" ;
grdrpt.ParameterByName("住院号").AsString = "住院号:123345678" ;
grdrpt.ParameterByName("入院日期").AsString = "入院日期:" DateTime.Now.ToShortDateString() ;
grdrpt.ParameterByName("住院科室").AsString = "住院科室:这里是科室";
//增加住院号二维码
gregn6Lib.IGRControl ctrl = grdrpt.ControlByName("二维码");
grdrpt.Printer.PrinterName = "";
grdrpt.PrintPreview(true);
}
}
}
.
├── G
│ ├── G
│ │ ├── Form1.Designer.cs
│ │ ├── Form1.cs
│ │ ├── Form1.resx
│ │ ├── G .csproj
│ │ ├── Program.cs
│ │ ├── Properties
│ │ │ ├── AssemblyInfo.cs
│ │ │ ├── Resources.Designer.cs
│ │ │ ├── Resources.resx
│ │ │ ├── Settings.Designer.cs
│ │ │ └── Settings.settings
│ │ ├── bin
│ │ │ └── Debug
│ │ │ ├── G .exe
│ │ │ ├── G .pdb
│ │ │ ├── G .vshost.exe
│ │ │ ├── Interop.grproLib.dll
│ │ │ └── 住院登记入院腕带.grf
│ │ └── obj
│ │ ├── Debug
│ │ │ ├── G .csproj.GenerateResource.Cache
│ │ │ ├── G .exe
│ │ │ ├── G .pdb
│ │ │ ├── G__.Form1.resources
│ │ │ ├── G__.Properties.Resources.resources
│ │ │ ├── ResolveAssemblyReference.cache
│ │ │ └── TempPE
│ │ └── G .csproj.FileListAbsolute.txt
│ ├── G .sln
│ └── G .suo
└── 好例子网_G .rar
8 directories, 25 files