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 ([HELP] Seagate Crystal Reports: Database Error)Next Topic (Crystal Report,Database & VB) New Topic New Poll Post Reply
AndreaVB Forum : Reporting tools : Setting paper size by Inch or centemeter
Poster Message
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40

icon Setting paper size by Inch or centemeter

hi every body

jsut  ihave to print some reportsin a page with 22 and 35 centemeter
but i think setuserpapersize is given by pixel
how we set it to inch or centemeter
or is there any relation between inch and pixe to change each other
thank u


[Edited by Gharakhanlou on 04-06-2005 at 04:39 PM GMT]

04-06-2005 at 03:34 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Setting paper size by Inch or centemeter

There is a form's ScaleX and ScaleY methods that will allow you to convert from one unit to another.

____________________________
If you find the answer helpful, please mark this topic as solved.

04-06-2005 at 02:42 PM
View Profile Send Email to User Show All Posts | Quote Reply
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40
icon Re: Setting paper size by Inch or centemeter

hi goran i think you didnt understand my ques

you know report paper size is given with piex by default

so when  i want to set userpapersize property for report object with range  width=22 centemeter and height=35 centemeter, i dont know what pixel is their values

I hope u understand
so

05-06-2005 at 01:10 PM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Setting paper size by Inch or centemeter

And I asume that you have checked help for these two methods?

pixelX=me.scaleX(22,vbcentimeters,vbpixels)
pixelY=me.scaleY(35,vbcentimeters,vbpixels)


where Me is the form object.

____________________________
If you find the answer helpful, please mark this topic as solved.

05-06-2005 at 04:34 PM
View Profile Send Email to User Show All Posts | Quote Reply
Gharakhanlou
Level: Scholar

Registered: 30-04-2005
Posts: 40
icon Re: Setting paper size by Inch or centemeter

thank u  goran

06-06-2005 at 06:25 AM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Reporting tools : Setting paper size by Inch or centemeter
Previous Topic ([HELP] Seagate Crystal Reports: Database Error)Next Topic (Crystal Report,Database & VB) 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