ActiveReport2.0中的rpt.Printer.PaperBins等等
ActiveReport2.0中的rpt.Printer.PaperBinsrpt.Printer.PaperBinNames
rpt.Printer.PaperBinNames(i)
arviewer1.Printer.SetupDialog
上面这些属性,在ActiveReport11中,好像没有了对吗?
怎么在AR11中对应,客户要求升级的程序中,必须要跟原来一样
但好像有个Grapecity.activereport.SystemPrinter,可以用这个吗?具体使用方法给说说吧
您好!AR2是很久以前的版本,您问的是关于打印的问题是吧!
现在打印后台代码是这样的:string file_name = @"..\..\PageReport1.rdlx";
GrapeCity.ActiveReports.PageReport pageReport = new GrapeCity.ActiveReports.PageReport(new System.IO.FileInfo(file_name));
GrapeCity.ActiveReports.Document.PageDocument pageDocument = new GrapeCity.ActiveReports.Document.PageDocument(pageReport);
pageDocument.Print(true, true, false);
你好,不是的,我们要实现类似于AR2的,打印,客户的成语是用Ar2做的,我们给他升级以后,要尽可能跟原来保持一致,有办法调用出printer的setupdialog嘛?还有paperbins,这个好像是获取打印机纸盒的吧,有些特殊的打印机需要用 KearneyKang 发表于 2017-11-20 09:36
您好!AR2是很久以前的版本,您问的是关于打印的问题是吧!
现在打印后台代码是这样的:
你好,不是的,我们要实现类似于AR2的,打印,客户的成语是用Ar2做的,我们给他升级以后,要尽可能跟原来保持一致,有办法调用出printer的setupdialog嘛?还有paperbins,这个好像是获取打印机纸盒的吧,有些特殊的打印机需要用 您好,您在AR2中用的是区域报表吧。目前最新的AR11的接口不可能跟AR2时一样,但是对于Printer的设置是可以进行设置的。 GrapeCity.ActiveReports.SectionReport sectionreport = new GrapeCity.ActiveReports.SectionReport();
sectionreport.LoadLayout(fullPath);
sectionreport.DataSource = dv;
sectionreport.Run();
GrapeCity.ActiveReports.Document.SectionDocument document = new GrapeCity.ActiveReports.Document.SectionDocument();
for (int i = 0; i < sectionreport.Document.Pages.Count; i++)
{
document.Pages.Add(sectionreport.Document.Pages);
}
if (printerName != "")
document.Printer.PrinterSettings.PrinterName = printerName;
LogHelper.WriteLog("after paperkind");
document.Printer.PrinterName = "";
document.Printer.PrinterSettings.Copies = 1;
document.Printer.PaperKind = 0;
document.Printer.PaperSize.RawKind = 0;
document.Printer.OriginAtMargins = true;
document.Printer.PaperSize.Width = (int)(Convert.ToDouble(documentxml.SelectSingleNode("ActiveReportsLayout").Attributes["PrintWidth"].Value) / 14.4);
document.Printer.PaperSize.Height = (int)(Convert.ToDouble(documentxml.SelectSingleNode("ActiveReportsLayout//Sections//Section").Attributes["Height"].Value) / 14.4);
LogHelper.WriteLog("before print:" + printerName);
GrapeCity.ActiveReports.PrintExtension.Print(document, false, false);附件是一个区域报表关于打印的设置,希望可以给你提供参考
KearneyKang 发表于 2017-11-20 16:06
您好,您在AR2中用的是区域报表吧。目前最新的AR11的接口不可能跟AR2时一样,但是对于Printer的设置是可以 ...
打印的设置都了解,但现在有个问题就是,怎么可以显示出打印机设定画面,以及怎么设置打印机的纸盒,也就是原来的rpt.printer.setupdialog功能,和rpt.printer.paperbins,rpt.printer.paperbinNames功能,在现在新版本的ar中如何实现 本帖最后由 KearneyKang 于 2017-11-29 10:04 编辑
您好!您现在是想给原来的产品做一个升级是吧! 好的
KearneyKang 发表于 2017-11-21 09:32
您好!您现在是想给原来的产品做一个升级是吧!要不我们QQ上进行一个技术的探讨,这样更方便大家的交流。QQ ...
你好,问了嘛,通过api之类的可以实现嘛 KearneyKang 发表于 2017-11-21 09:32
您好!您现在是想给原来的产品做一个升级是吧!要不我们QQ上进行一个技术的探讨,这样更方便大家的交流。QQ ...
你好,问了嘛,通过api之类的可以实现嘛
页:
[1]
2