Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Custom Paper Size

This is a discussion on Custom Paper Size within the Microsoft .NET forums, part of the Programming Talk category; Dear All I am facing a problem in printing document using custom paper sizes, i created a new paper size ...

  1. #1
    mahroofnm is offline Junior Member Array
    Join Date
    Sep 2006
    Answers
    1

    Question Custom Paper Size

    Dear All
    I am facing a problem in printing document using custom paper sizes,
    i created a new paper size thru code and try to use the same paper size for printing, in preview it shows exactly [ giving output in same pape size ], but while printing the paper size is resetting to A4 / letter.
    How can i solve this ...

    i am using vb.dot net 2005.

    i read somewhere that it is possible thru Winspooler API, but i dont know how to use that.




  2. #2
    sammy is offline Senior Member Array
    Join Date
    Apr 2006
    Answers
    144
    Here is a nice sample project that you can use to start with ..

    Adding custom paper sizes to named printers - The Code Project - C# Programming

    this is in C Sharp but there are converters to get the code to vb.net

    here is the converter if you are wondering ..

    Convert C# to VB.NET - A free code conversion tool from Developer Fusion

    Thanks,


Latest Article

Network Security Risk Assessment and Measurement

Read More...