seem a joke..... local nResHoriz := oWnd:nHorzRes() local nResVert := oWnd:nVertRes() where is oWnd ? I don't always have the main window where I can find the oWnd? Such a solution seems strange to me Hi Silvio, you must not take 'oWnd' but take your dialog: ...
... is oPrinter getting its values ... In the attached program .. I evaluate oPrinter to get the Horizontal and vertical values : nRowStep := oPrint:nVertRes() / 55 // pixel per line = 57.65 @ 55 nColStep := oPrint:nHorzRes() /130 // columns I use these values to place the output in specific places ...
... nCsp are determined by the orientation and papersize: // Set the resolution divided by the standard 8.5x11 inch paper rows/columns nRsp := oPrn:nVertRes() / 68 // Number of rows nCsp := oPrn:nHorzRes() / 85 // Number of columns I've used these for years with success. You can even implement color ...
... report I am trying to print to pdf works fine if you use the print viewer .. however, I am doing a lot in this report by using the Printer oPrint:nVertRes() and oPrint:nHorzRes() properties and placing my text on the page in relatively the same position based on what ever printer is used .. I ...
... Thanks for understanding and we highly appreciate your cooperation. I make a pen with "DEFINE PEN oPen1 WIDTH max(1,(max(oPrn:nHorzRes(),oPrn:nVertRes())/1800))" Instead please use DEFINE PEN oPen WIDTH nWidth OF oPrn // FWH1909 This will accurately translate the width to ...
... But a other thing is the pen in oPrint:box() and oPrint:roundbox(). I make a pen with "DEFINE PEN oPen1 WIDTH max(1,(max(oPrn:nHorzRes(),oPrn:nVertRes())/1800))" with exact pixels. In the METHOD ParamPen(..) you use case cType == "O" .AND. anoPen:IsKindOf( "TPEN" ...
... si ya tengo los EMF imagenB e ImagenC, no quiero incluirlos en el prg de impresion como oPrn:SayImage(0,0,'OrdenTras,EMF', oPrn:nHorzRes(), oPrn:nVertRes()-150 , NIL, .t. ) no se si esto haga lenta la generacion de previow.