TPrinter Class

Post Reply
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

TPrinter Class

Post by RAMESHBABU »

Hi All

I am a TDosPrn user and I am new to Windows Printing. I wrote a small
customised report using TPrinter Class and the output in the preivew is
good and exactly as per my requirement.

I changed the default printer to another printer. And the output is not in
a readable position. The rows, and columns are displaced.

I found the difference is just bause of their individual printer's resolution.

Can anybody suggest me what is the procedure that I should adopt
to get a constant output in preview/on paper, even the user selects
different printers ( with the different printer resolutions ).


Thanks in advance


- Ramesh Babu P
User avatar
carlos vargas
Posts: 1421
Joined: Tue Oct 11, 2005 5:01 pm
Location: Nicaragua

Post by carlos vargas »

Ramesh

I you use oPrint:Say() method, youl have this problem. (this is resolution depend of printer)

use oPrint:cmSay() method for avod the problem.

sorry for my very bad english.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Hi carlos

Thank you for quick reply.

I will try it and come back.

Regards

- Ramesh Babu P
User avatar
Roger Seiler
Posts: 223
Joined: Thu Dec 01, 2005 3:34 pm
Location: Nyack, New York, USA
Contact:

Post by Roger Seiler »

Download a zip file from my website that contains source code to deal with your printer problems. The URL is below.

The problem is usually caused by the workstation printer using a different DPI than the printer that you used when you created the report. My program code executes a test printout that shows what adjustments need top be made for the particular printer, and writes the adjustment codes to an ini file on the workstation for future automatic reference by the report programs.

http://www.leadersoft.com/support/prntadj.zip

This zip contains:

- 2 PRG files: PrntAdj.prg and TRept23.prg

- a PrntAdj.rc file containg the resource for the dialog used by PrntAdj.prg

- a PrinTest.txt file to be used for the test of the printers internal settings

- a PrntAdj.txt Help text file to explain things to the end user

Good luck!

- Roger
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Post by Antonio Linares »

Roger,

Thanks!
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
RAMESHBABU
Posts: 591
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Post by RAMESHBABU »

Mr.Roger

Thank you very much for your help.

I could understand your logic and I feel that it is a work around process.
And I can't bother my user to test every report supplying with different
Parameters untill they get correct output for every printer they deal with.

I am in search of an automatic mechanism which can convert row, col
co-ordinates of customised reports when they are printed on any windows
printer, having different resolutions.

I don't know how all other's are printing these customised reports on
different Windows Printers having different resolutions using FWH :o

Regards to you

- Ramesh Babu P
Post Reply