Page 1 of 1

Print() and collate problems

Posted: Sun Oct 16, 2016 9:37 pm
by FrenkR
Hi,
using 2016.2.2 and bullzip PDF printer. In a following case I would like to print only pages 2-5 from a rendered report to a printer in 2 copies with collating. I have following code:

Code: Select all

StiReport _report;
  /*... here is code for generating report */
  _report.Render(); // rendering report(to print only some pages from it)
  _report.report.PrinterSettings.PrinterName = printerId;
  _report.report.PrinterSettings.ShowDialog = false;
  _report.report.PrinterSettings.Copies = copies;
  _report.report.PrinterSettings.Collate = true;  // want to collate printing
  _report.report.Print( false, 2, 5, 2);
With this code, I would expect printing in following order: 2,3,4,5,2,3,4,5. But report is printed in following order: 2,2,3,3,4,4,5,5. After further testing, I found out that parameter "_report.report.PrinterSettings.Collate" has no function here(there is no difference in output if I set it to "false" or "true").
Is there any additional settings to force printing in collated order?

Re: Print() and collate problems

Posted: Mon Oct 17, 2016 7:09 am
by HighAley
Hello.

What printer do you use?
Does your printer support the Collate?
If not, you should do it manually.

Thank you.

Re: Print() and collate problems

Posted: Mon Oct 17, 2016 11:22 am
by FrenkR
printer is "bullzip PDF". Then it looks like this driver has no support for that.
If I understand correctly, "Print() method takes RenderedPages() list from report and "sends" them to spooler. So if printer has no "collate" support, then I should change this list in a way I want to print(e.g. duplicating pages to emulate "copies" and sorting page by page to emulate "collation")?

Re: Print() and collate problems

Posted: Mon Oct 17, 2016 3:28 pm
by HighAley
Hello, Frenk.

Unfortunately, there is no way to know if the printer support Collapsing or not.

Thank you.