Rathi,rathinagiri wrote: In HMG, the dimension of width and height of the paper is measured in millimeters and not columns. For example, if we choose an 'A4' paper, it is 210 mm wide and 297 mm high.
From this we can reduce the top, left, right and bottom margins say 25 mms (approx. 1 inch).
Then, we start printing like this @ 25,25 print 'This is to be printed' font "Arial" size 10
Hence, if you want to have the same proportion like your old dos, we can have here a small udf to convert the column number to mm.
@ c2mm(10),c2mm(10) print 'This as the first column' font "Arial" size 10
@ c2mm(10),c2mm(20) print 'This as the second column' font "Arial" size 10
Now, the function c2mm() is like this.
function c2mm(ncol)
return (ncol/80 * 210) // 80 is the number of columns in your old dos application. 210 is the width of the paper in windows.
I think I hadn't messed you more.
Thanks a lot! And I am learning so many things about printing today! Thank you Swapan for this topic
![Smile :)](./images/smilies/icon_e_smile.gif)
Now I have a suggestion. IMHO, may I change your code as:
@ r2mm(10),c2mm(10) print 'This as the first column' font "Arial" size 10
@ r2mm(10),c2mm(20) print 'This as the second column' font "Arial" size 10
...
...
Function R2mm(nRow)
return (nRow/66 * 297)
...
...
Now is there any function(s) to get the current Page Width and Current Page Height (PAPERWIDTH / PAPERLENGTH
![Question :?:](./images/smilies/icon_question.gif)
BTW, I am storing your posts in this this thread in my computer (like I did in case of MySql).
Thank you again.
Regards.
Sudip