Dear Klas,
thank you for your help.
I'll send a private mail to you.
Catello Buonocore
"Klas Engwall" <klas.engwall@[EMAIL PROTECTED]
> ha scritto nel messaggio
news:481a5273$0$6433$834e42db@[EMAIL PROTECTED]
> Catello,
>
>>I need some information about library "CLIPPER PDF" developed by Victor
K.
>>I have a procedure that print a report with several columns.
>>Now I am modifying the procedure to create a PDF file of the report.
>>
>>I have some question:
>>
>>1) What is the coordinate system that I have to use with the
function
>>pdfAtSay ?
>
> The default is rows and columns like you normally use. But you can
> also use millimeters if you pass an "M" in the cUnits argument.
>
>>2) I see that in this function there is a transformation of the
>>parameters nRow and nCol. What is the meaning of this ?
>
> The coordinate system in the PDF file is upside down with a resolution
> of 72 DPI. So if you specify nRow==10 it has to be converted to, say,
> 70 lines (page length) minus 10 lines equaling 60 lines from the
> bottom. Then at 6 lines per inch and 72 DPI the resulting vertical
> position will be 720 dots from the bottom. Or something like that ...
>
> nCol is a little different. IIRC, it calculates the percentage of the
> report width (previously specified) at which your nCol is located.
> This means that when you use long lines the whole page will be
> compressed sidewise, and data from different columns in the report
> will pe printed on top of each other if the column gap is small.
> Personally, I think that solution is a little too smart.
>
>>3) When I print the report to a printer I know the width of a
column
>>because I multiply the max number of the character and the size of the
>>printer's character. May I do the same thing with PDF file ? I don't
>>understand the way.
>
> Yes, but make sure that the report width (the nLen argument to the
> pdfOpen() function) corresponds with the actual report width your
> pdfAtSay() calls require.
>
>>4) I have read somewhere that exist a version 0.8 of the library.
>>Where
>>can I download it ?
>
> AFAIK, it is not available anywhere on the web anymore. But I can
> email a copy to you if you give me a valid email address.
>
> BTW, there is a demo included in the package. Use it to familiarize
> yourself with the different options and to test the things you asked
> about. Much easier than to start from scratch.
>
> Regards,
> Klas
>
> -------
> klas dot engwall at engwall dot com
>
> http://www.engwall.com/clipper/
>
> The LFN Library for Clipper
> The LanMan Library for Clipper
> The NFPAT1A Timeslice release patch for the Nanforum Toolkit


|