How can I print the whole fields of DBf in preview.dll put all fields simulataneoulsy in separate pages ?
How can I print the whole fields of DBf in preview.dll put all fields simulataneoulsy in separate pages ?
Could you re-phrase your question, please? I can't understand your question as presently stated, but would like to help if possible.
Roger Seiler wrote:Could you re-phrase your question, please? I can't understand your question as presently stated, but would like to help if possible.
I want to overcome the problem of ;
Report width is greater than page width ?
I believe what he wants is to print as many fields (in order) as will fit within the width of a portrait page in one report, then pick up on the next field on a second report, etc.
This will require calculating the width of each field based on the field width and the width of a dummy string of characters (usually uppercase B's) of the same length as the field spec. You use uppercase B's because nothing actually in the field will be wider than that. Also the printable width of the printer will have to be considered. I don't know that anyone has done this, but I am sure it can be done.
I did something similar a long time ago, but all the fields were the same width so it was easy.
James
Can you help me in coding please ?
Ehab,
Try these:
oReport:oDevice:nHorzSize() // page width
oReport:oDevice:getTextSize( cText, oFont )
James