Posted 14 September 2017, 6:32 pm EST
[activereports_archive]Hi Mohita,
I have other elements for you:
Environment:
- windows server 2012 remote app and windows server 2012 remote desktop
- one page report
- last ar7 build
- access to remote app via internet (adsl relatively slow connection)
From nothing to preview:
- Ar3 - 2 seconds
- Ar7 - 25 seconds
From preview to print (with button ‘print’ of the vierwer)
- Ar3 - 1 second
- Ar7 - 20 seconds
At this point I can imagine that Ar7 needs something for print and have to ask (and wait) to the os. I have put the lines before the Rpt.Run method:
float TmpWidth = (Rpt.PageSettings.PaperWidth + Rpt.PageSettings.Margins.Left + Rpt.PageSettings.Margins.Right) * (float)100;
float TmpHeight = Rpt.PageSettings.PaperHeight * 100;
Document.Printer.PaperKind = System.Drawing.Printing.PaperKind.Custom;
Document.Printer.PaperSize = System.Drawing.Printing.PaperSize(“Custom Paper Size”, (int)Math.Ceiling(TmpWidth), (int)Math.Ceiling(TmpHeight));
Now Ar7 is very fast: 2 seconds from nothing to preview !!!
From the viewer print button to print always 20 seconds …
My conclusion: ar7 needs to know the paper size and kind and makes a call to os; this call is very slow in 2012 remote app. If I tell to ar7 paper related informations, it don’t need to call the os and for this reason is very fast. I’m wrong ?
Now is very fast but I have problems with the paper width and height. Can you give me a code snippet with the right way to set the paper size and kind reading from the report ?
Thank you, Paolo.
PS: with citrix, everything work fine and very fast without any setting of paper size and kind.
[/activereports_archive]