Page 1 of 1

Custom Paper Size

Posted: Mon Mar 16, 2009 2:30 pm
by Milton Guevara
I have to print an invoice directly from code ... how can I do to print with a custom paper size ... I am using "Report.Print (False)" but is not respected when printing the paper size given in the report.

Milton

Custom Paper Size

Posted: Tue Mar 17, 2009 3:26 am
by Edward
Hello Milton,

The size of the page is stored directly in the report's template and size of the page is stored inside of the each page separately.

Please check that each page in the report template has correct sizes and orientation.

Thank you.

Custom Paper Size

Posted: Wed Mar 18, 2009 8:13 am
by Milton Guevara
Hello
Please send me an example where you can print a custom size paper (to print directly from code without displaying the dialog).
I am using a printer type DotMatrix

Milton

Custom Paper Size

Posted: Wed Mar 18, 2009 8:44 am
by Edward
Hi Milton,

Sorry, for DotMarix printers this option is not available.

Thank you.

Custom Paper Size

Posted: Wed Mar 18, 2009 10:10 am
by Brendan
Hi Milton,

I print to Dotmatrix printers with tractor sheet paper using Custom size paper. Each tractor sheet has a tear off point but the paper is continuous to a degree.

I don't use the dotmatrix printing mode within StimulReport right now but just printing to the dotmatrix using the normal print out.

Whatever the page size you are using within your report, you also need to make sure this page size exists on the Windows machine as well. this way the page size is available to the printer when the print job is sent to the printer. To create custom paper size in windows you open Printers and Faxes and Right click in some free space and select "Server Properties" (or File -> Server Properties).

From the 'Forms' Tab click the 'Create a new form' and give your form an appropriate name and enter its page size at the bottom of the window. Click OK to save. Make sure the paper Size width and Height match that of the page you use in StimulReports.

Custom Paper Size

Posted: Fri Mar 20, 2009 12:00 am
by Milton Guevara
Great Brendan, thanks for your help really has helped me with a problem that was long overdue.
I've completed the steps that states and works well.

It would be helpful if Stimulsoft would create the custom paper size from the code ... in my case I have 15 customers and I would avoid having to create multiple formats for each machine.

Thank you very much
Milton