Hi
I have a windows application that prints a record in a given page size.

I looked all over but i could not see how did it set the page size.
and now requirement is to print the paper size in legal paper size of 18.5" by 14".

How can i set the printing process to print in this paper size.

I have not done this kind of job before so i am finding it quite difficult.
Searching internet was not much help

Please help

>I have a windows application that prints a record in a given page size.

I don't think there is a big problem with windows application. Use crystal report or microsoft report.

man
i can't use crystal reports, i need it in C#.

If you are printing using a PrintDocument object then you can try altering the .DefaultPageSettings.PaperSize property.

commented: Perfect answere, doing this exactly solved the problem +1

If you are printing using a PrintDocument object then you can try altering the .DefaultPageSettings.PaperSize property.

Thaanks Ryshad your solution worked.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.