Simple question about printing and viewing

Stimulsoft Reports.WPF discussion
Post Reply
MasterCephus
Posts: 16
Joined: Wed Mar 24, 2010 6:08 am

Simple question about printing and viewing

Post by MasterCephus »

Let's say I have one MRT file that contains 3 pages (a front, back of a form, and an alternate back). Depending on the decision of my user, I want to decide which back page I want to render and print. I am having trouble doing this...

I have tried:

report.Pages["Back"].Skip = false;
report.Pages["AltBack"].Skip = true;

report.Pages["Back"].Printable = true;
report.Pages["AltBack"].Printable = false;

report.ShowWithWpf();

No matter what, all three pages show in the viewer...what am I doing wrong?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Simple question about printing and viewing

Post by Jan »

Hello,

Please use following code:

Code: Select all

report.Pages["Back"].Enabled = true;
report.Pages["AltBack"].Enabled = false;
Thank you.
MasterCephus
Posts: 16
Joined: Wed Mar 24, 2010 6:08 am

Simple question about printing and viewing

Post by MasterCephus »

that worked perfectly!

Another question. My forms are really small. I would like for them to print in landscape on the same page. They fit, but when they print, each page is printed on a separate page. They could easily fit on one side of one regular sheet of paper.

How do you "combine" them to print on one piece of paper?
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Simple question about printing and viewing

Post by Andrew »

Hello,

Could you, please send a report for analysis.

Thank you.
MasterCephus
Posts: 16
Joined: Wed Mar 24, 2010 6:08 am

Simple question about printing and viewing

Post by MasterCephus »

Andrew,

Unfortunately, I can't send a report as my project contains sensitive state information that I can't hand out.

Maybe I can describe my situation a little better and that will help solve the problem:

I have an MRT file that contains 3 pages. These pages represent a front of a form, the back of a form, and alternative back.

Each page is of size:
Page Height: 8.25
Page Width: 4.25
Orientation: Landscape

Now each prints on separate page perfectly (left aligned in landscape with a ton of available space on the right hand side of the page. So when I hit print, the front page prints in landscape (on the left hand side of the paper) on one page. The back does the exact same thing on a separate page.

What I would like to do is when I hit the print button, I want the front page to print in landscape on the left hand side of the paper in landscape and the back to print on the right hand side in landscape on the same printed page.

Does that make sense?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Simple question about printing and viewing

Post by Jan »

Hello,

Sorry this is not possible with our report engine.

Thank you.
MasterCephus
Posts: 16
Joined: Wed Mar 24, 2010 6:08 am

Simple question about printing and viewing

Post by MasterCephus »

Interesting...could this be a feature request? This is something that would be really useful for us.

Is there any way to to combine two pages that in landscape mode to print on one page?
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

Simple question about printing and viewing

Post by Jan »

Hello,

May be more better to use special program for this. For example FinePrint.

Thank you.
Post Reply