Searching for ways to set PaperSource

Stimulsoft Reports.NET discussion
Post Reply
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Searching for ways to set PaperSource

Post by munich »

What possibilities does Stimulsoft Reports.Net provide to set the PaperSource (System.Drawing.Printing.PaperSource) for a print task?

I know the possibility to use
StiReport.Print(
bool showPrintDialog,
PrinterSettings printerSettings
)
or
StiReport.Print(
bool showPrintDialog,
int fromPage,
int toPage,
short copies,
PrinterSettings printerSettings
).

Is there any other possibility?
Is there any possibility that looks like StiPage.PaperSourceFirstPage and StiPage.PaperSourceOtherPages?

Thanks for any help.
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Searching for ways to set PaperSource

Post by Edward »

Hi,

Please describe your task in more detail, please.

Thank you.
munich
Posts: 82
Joined: Wed May 06, 2009 7:57 am

Searching for ways to set PaperSource

Post by munich »

Hi Edward,

first time I saw the properties StiPage.PaperSourceFirstPage and StiPage.PaperSourceOtherPages I thought they are of the type System.Drawing.Printing.PaperSource. If this would have been the case, it would have been possible to control what kind of paper source is used for the first page and what kind of paper source is used for the following pages. But unfortunately the type of the two settings is System.Drawing.Printing.PaperSourceKind and therefore not useful to reach my aim.

The only way I know is to implement this is doing one print out of page one via e.g.
StiReport.Print(
bool showPrintDialog,
PrinterSettings printerSettings
)
setting the wanted paper source in parameter printerSettings,
and afterwards doing a second print out of the remaining pages in the same way.

Now I would like to know if there is simpler way to do all this?
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Searching for ways to set PaperSource

Post by Edward »

Hi

These properties can be used only with printers, which have got more than one tray for the paper. So you could set different sources for the first and other pages when printing.

Please note that not all printers do support these feature.

Thank you.
Post Reply