Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

datawindow.print.paper.size

Status
Not open for further replies.

ESC1N

Technical User
Sep 9, 2002
4
AR
How to customize datawindow.print.paper.size property
beacause i need a custom paper: 177 mm x 225 mm. only for this report.
I can do this ?


PD: Sorry my english but i am Argentino.
 
ESC1N,

You can look at print.property in pb help. There it tells you how to specify the paper size that you want to have printed.

To print in landscape, you would code it as

dw_1.Object.DataWindow.Print.Orientation = 1 (Landscape)

There is a long list of all the paper sizes that you can choose from. Hopefully one of them will work for you.

Daniel32
 
I know but i need exactly this length 177mm x 225 mm !!!!
 
You will not get these exact dimensions but what you can try is to select a size which is close to your requirements and adjust the remaining using margin properties.

RT
 
I try to use this method but the printer is a matrix point printer and crriage the paper until the middle of the next.
I don't want make a print report with job. No have sense, for what exist PowerBuilder.
 
Try using papersize = 13 and then playing with the left and right margins until you get it formatted the way that you want it. That is about the only other thing I can think of that you might be able to do. Either that or reformat your report so that it fits into one of the options.

Daniel32
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top