Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

application problem A3 to A4 paper, missing information

Status
Not open for further replies.

roarlad

Programmer
Jun 8, 2007
5
IE
Hi,
we have a application here that was made using FoxPro 2.6, anyway it used to print on an old line printer onto A3 pages, however recently it was changed to a laser jet printer printing on A4 pages. However when a report or anything is printed now from the application there is information missing, i.e the page setup was changed to landscape to accommodate the extra width, but now there is information missing from the bottom of the page, information that you thought would appear on the next page but it doesn't.
anybody have any ideas?
I've read this:
and
but they didn't help.

thanks
 
roarlad,
suppose character print, for example 12 character/inch.
Try decrease letter size, to fit half format page,
something as
??? chr(27) + "(s24H"
(24 = 24 character/inch)
Tesar
 
How is the report in the application printed?
1. From a Report (Report form MyReport to print)
2. From a Program (Do MyReport.PRG)


David W. Grewe Dave
 
the reports are printed as follows:
when you select to print a particular report from a drop menu, it calls a .prg which takes what type of report you want printed, then it calls a file called
0Print.SPR with the type of report passed as an argument

e.g
DO 0Print.SPR WITH 'DayLmt'

and then in the 0Print.SPR it checks if it is a report to be printed and if so it sets parameters, then it sees the type of report and in that case it calls a .prg

e.g
CASE Rep NAme ="DAYLMT" && Daily Limit Report
SHOW GETS WINDOW Print
DO 6DayLmt

then in that 6DayLmt.prg it declares the layout of the report and the headings etc..

But after all that there is another .prg file called
0defprnt.prg in which the old A3 line printers are defined, and the page size is defined from these printers.

e.g
DO PUTPRINT WITH PRINTERS, NUMBER, 'Epson SQ-2500,EPSON24,LPT2:'
= SETPAPER('Epson SQ-2500,LPT2',256,2800,3450)

In the above case the setpaper parameters are:
(printer type, paper size, length, width)
So what I was thinking:
can I either
(a) add the network printer that will be used now?
and if so how do I declare a network printer in this case?
IT_Laser1 is the name of the printer, I know its ip address, and its a HP LaserJet 4.

so can I do the following:

DO PUTPRINT WITH PRINTERS, NUMBER, HP LaserJet 4,IT_Laser1,19.55.10.11'
= SETPAPER('HP LaserJet 4, 19.55.10.11',256,2800,3450)

and change the length, width and paper size?

(b) can I remove all these printer definitions so that the reports print to the default printer and pick up the settings from the system's user instead?

sorry if all that sounds long winded and makes absolutley no sense.
 
problem solved. read somewhere else online that you can set the printing preferences to print to an A3 size page, then in the effects options get it to resize the page back to a4 and scale the page.
problem solved.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top