Custom Paper Size

Stimulsoft Reports.NET discussion
Post Reply
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Custom Paper Size

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Custom Paper Size

Post 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.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Custom Paper Size

Post 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
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Custom Paper Size

Post by Edward »

Hi Milton,

Sorry, for DotMarix printers this option is not available.

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

Custom Paper Size

Post 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.
Milton Guevara
Posts: 53
Joined: Thu Aug 21, 2008 9:28 pm
Location: Peru

Custom Paper Size

Post 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
Post Reply