borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (How to define custom paper in the code ( VB.Net ))Next Topic (How to add a section in crystal report through VB6) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Paper Size
Poster Message
EvilDags
Level: Protégé


Registered: 28-09-2005
Posts: 5

icon Paper Size

Hello.

I need help with some paper size settings.  In crystal reports 9 (vs.net) my rptclass only can get paper size from a enum of crystal.shared, but I need to set a paper size like width=8.5in, height=5.5in, but the only way to do that is in design mode in crystal, i need to do this on runtime.

If someone know how to do this, please let me know.

Thanx.



____________________________
--

28-09-2005 at 03:26 PM
View Profile Send Email to User Show All Posts | Quote Reply
achonk81
Level: Trainee

Registered: 13-09-2005
Posts: 3
icon Re: Paper Size


I have the same problem. I designed my report using a user defined paper named "Voucher" ( width 8.5 inch,length 5.5 inch)
but When i print directly to the printer from my web the result is not using voucher paper but Letter.
I search in the internet and i found and article that suggest to use this code
oReportDocument.PrintOptions.PaperSize = CType(133, CrystalDecisions.shared.PaperSize)
I allready add that code but still failed but the size allmost correct i predict it print on the most similar paper A5 rotated ( width 8.27 inch, Height 5.83 inch )

can any one help me to defind the code correctly to make the report printed in the correct paper size

Please give me a solution
thank you in advace

04-10-2005 at 03:38 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Paper Size
Previous Topic (How to define custom paper in the code ( VB.Net ))Next Topic (How to add a section in crystal report through VB6) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder