Page Printing Order

Stimulsoft Reports.NET discussion
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Page Printing Order

Post by MikeC »

I have a report that has 2 pages for each record. One (is on page 1) is a customer copy, the other (is on page 2) is the office copy. They have the same data but the office copy has some additional information at the bottom.

Right now if I have 50 records it prints all of the customer copies first (1-50) and then all of the office copies (51-100). I'd like it to print page 1 (customer copy), and then page 2 (office copy), and then start over on page 1 (customer copy) again so the customer copy and the office copy are printed in order.

How do I collate so it prints page 1, page 2, page 1, page 2, etc?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Page Printing Order

Post by Alex K. »

Hello,

You can use the following code:

Code: Select all

 StiReport report = new StiReport();
 report.Load();
 report.PrinterSettings.Copies = 50;
 report.Print();
Thank you.
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Page Printing Order

Post by MikeC »

Aleksey wrote:Hello,

You can use the following code:

Code: Select all

 StiReport report = new StiReport();
 report.Load();
 report.PrinterSettings.Copies = 50;
 report.Print();
Thank you.
Won't that only work if I always have 100 printed pages (50 of each?)? If so, then it won't work because the total number will vary. It might be 100 total pages today, tomorrow it might be 68 pages, the next day it might be 166 pages, etc.

Brendan
Posts: 309
Joined: Sun Jul 16, 2006 12:42 pm
Location: Ireland

Page Printing Order

Post by Brendan »

You can set the Collate property on the report object to 2.
You can select the report properties either from the dropdown in the properties window or just click on the blank border area outside the page designer pane.
MikeC
Posts: 51
Joined: Mon Jun 07, 2010 3:36 pm

Page Printing Order

Post by MikeC »

Brendan wrote:You can set the Collate property on the report object to 2.
You can select the report properties either from the dropdown in the properties window or just click on the blank border area outside the page designer pane.
I tried that and it doesn't work-it still prints all of the first pages, and then all of the page 2's.
Ivan
Posts: 960
Joined: Thu Aug 10, 2006 1:37 am

Page Printing Order

Post by Ivan »

Hello,
MikeC wrote:
Brendan wrote:You can set the Collate property on the report object to 2.
You can select the report properties either from the dropdown in the properties window or just click on the blank border area outside the page designer pane.
I tried that and it doesn't work-it still prints all of the first pages, and then all of the page 2's.
We couldn't reproduce this behaviour.
This property work correctly on our reports.
Can you please send us a sample report with data, which reproduce the issue?

Thank you.
Jaroslav Hrdinka
Posts: 2
Joined: Fri Apr 18, 2014 1:32 pm

Re: Page Printing Order

Post by Jaroslav Hrdinka »

Hi,

I have a problem with collate property in the print , when I'd like to print more than one copy of multipage report. If I paste StiDesignerControl in my winform application, show preview and then click on print button, collate property doesn't work correctly (print_dialog_1.png from attachments is displayed) - at first are printed two (or more) copies of first page and then two (or more) copies of next page etc. If I save the preview (as .mrc file) and open it in installed Stimulsoft report viewer, then other print dialog (print_dialog_2.png) is displayed and completion work normally - pages are printed in order page 1, page 2, page 1, page 2...
I need print with collate property from my winform application - please could you help me? (in attachments are two images with print dialogs and stimulsoft report file for testing).

Thanks
Attachments
print_dialog_2.png
print_dialog_2.png (31.28 KiB) Viewed 4572 times
print_dialog_1.png
print_dialog_1.png (24.01 KiB) Viewed 4572 times
test.mrt
(4.87 KiB) Downloaded 410 times
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Page Printing Order

Post by HighAley »

Hello.

Do you use 64-bit system?
Please, try to enable EXDialog with next option:

Code: Select all

Stimulsoft.Report.Print.StiPrintProvider.UseEXDialog = true;
Thank you.
Jaroslav Hrdinka
Posts: 2
Joined: Fri Apr 18, 2014 1:32 pm

Re: Page Printing Order

Post by Jaroslav Hrdinka »

Hello,

yes, I do. I enabled EXDialog and it works well.

Thank you very much.
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: Page Printing Order

Post by Alex K. »

Hello,

Let us know if you need any additional help.
Post Reply