Page 1 of 1

Searching for ways to set PaperSource

Posted: Wed May 06, 2009 8:43 am
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.

Searching for ways to set PaperSource

Posted: Wed May 06, 2009 6:21 pm
by Edward
Hi,

Please describe your task in more detail, please.

Thank you.

Searching for ways to set PaperSource

Posted: Thu May 07, 2009 7:45 am
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?

Searching for ways to set PaperSource

Posted: Thu May 07, 2009 2:23 pm
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.