Hello all
here is my Problem
in windowsxp if you try to use printer.papersize =256 ( user defiend) it will return an error because this property is not supported on windows xp
after search MSKB I found that to send a custom paper size to printer you have to create a form and add it to SYSTM printing forms then you can use it and here is a link to this article
this article helped me and I can now print on any papersize ,,,
but the problem is that I can't change the orientation to landscape
- if trying to set orientation before set the form the width and height will be replaced and the printer prints in portrait mode
- if trying to set orientation after setting the form the printer papersize will be reset to A4 SIZE and it prints in right way (landscape )
please help me
how to set orientation to selected form
thanks in advance
here is my Problem
in windowsxp if you try to use printer.papersize =256 ( user defiend) it will return an error because this property is not supported on windows xp
after search MSKB I found that to send a custom paper size to printer you have to create a form and add it to SYSTM printing forms then you can use it and here is a link to this article
this article helped me and I can now print on any papersize ,,,
but the problem is that I can't change the orientation to landscape
- if trying to set orientation before set the form the width and height will be replaced and the printer prints in portrait mode
- if trying to set orientation after setting the form the printer papersize will be reset to A4 SIZE and it prints in right way (landscape )
please help me
how to set orientation to selected form
thanks in advance