How to print with out preview
Posted: Wed Oct 17, 2012 6:37 am
Hello everyone
I'm using mvc product, I would like to directly call report printing function without the need to pass the first preview, please
tell me whether this method is feasible, and if possible how to encode
my code is thid
StiReport report = new StiReport();
report.Load("MyReport.mrt");
report.RegData(myDataSet);
report.Render();
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.Copies = 1;
printerSettings.FromPage = 1;
printerSettings.ToPage = report.RenderedPages.Count;
report.Print(false, printerSettings);
in the IDE DEBUG it work ok but publish in iis is donot work please give me help
Thank you
I'm using mvc product, I would like to directly call report printing function without the need to pass the first preview, please
tell me whether this method is feasible, and if possible how to encode
my code is thid
StiReport report = new StiReport();
report.Load("MyReport.mrt");
report.RegData(myDataSet);
report.Render();
PrinterSettings printerSettings = new PrinterSettings();
printerSettings.Copies = 1;
printerSettings.FromPage = 1;
printerSettings.ToPage = report.RenderedPages.Count;
report.Print(false, printerSettings);
in the IDE DEBUG it work ok but publish in iis is donot work please give me help
Thank you