Custom size paper problem

S

Sukh

Hi,
I am tring to change the paper size from default to custom paper size.
In print preview its showing my custom size but when I print it print
on default paper size.
Can any one help me to figure out this?
I am using following code:
Dim customPaperSize As New PaperSize("11x9", 1100, 900)

pdMain.DefaultPageSettings.PaperSize = customPaperSize

'pdmain is Friend WithEvents pdMain As
System.Drawing.Printing.PrintDocument

Thanks in advance
Sukh
 
P

Peter Proost

Hi, the custom paper size has to be supported by the printer. The
'PrinterSettings' provide a
'PaperSizes' property that contains all paper sizes supported by the
printer.

Hope this helps

Greetz Peter
 
S

Sukh

Thanks Peter but PrinterSettings.PaperSizes is ReadOnly Property.
:(

any other way :
Sukh
 
P

Peter

Hi, I know but it shows the papersizes supported buy the printer, so you can
check if your papersize is supported

Greetz Peter
 
S

Sukh

Hi Peter,
Thanks for your response. I fixed that issue using custom paper size
but now stuck with another problem
I am stuck with a problem Can anyone help me out from this...

I am printing a report on pre-printed continue paper using dot-matrix
printer using vb.net and paper size is my created custom page size

on first page Data is printing on all the correct locations. But
After printing first page it increase paper 3cm vertically/Height so on

second
page actual data goes down by 3 cm, So each time it increase 3 cm mean
on second page its 6cm and on 3rd page 9cm so on.... So After printing
the
first page on correct locations , data goes on different locations
which is complete mess.

please give any suggestion or any idea.

I am creating my own custom size page and setting the same for
printing.


Thanks
Sukh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top