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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report not behaving nicely!!

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
Development
VFP 9 SP2
XP pro
Printer HP Office Jet 8500
Save Printer Environment (NOT CHECKED)


Report:
Report prepared by cursor.

Code:
Select * from myTable where someCondition into cusor _BlaBla
Sele _BlaBla
Report form MyReport to printer Prompt Preview


on other machines (at the customer):
-the margins look off on the right side.
-User selects the # of copies=2 in the printer dialogue box, it only prints 1
-All reports look off at the right margin
-I use Calibri font, and the user have those fonts installed.


what the heck is causing it :(


Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
Hi,

Same printer in development and in production?
Using Reportbehavior 90?
Same exactly same data in development and in production?

Jockey (2)
 
Ive had the same issue with different printers - well, drivers. Some people's printers look fine, but others have too wide of left or right margin.
What I've found is that I have to use the lowest common denominator.
Usually installing something like a HP LaserJet 4 driver, or something with the least amount of frills and testing the preview on that does the best job.

Why it prints one copy, not sure.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Ali,

You don't say what printers are used at the customer's site. Are they the same HP Office Jet 8500s that you use in development?

If they're not, then it is understandable that the page margins might be slightly different. Printers vary slightly in terms of the unprintable region at the edge of the page as well as other factors. You can expect different margins, and possibly even slight differences in pagination.

But that wouldn't explain why you are only getting one copy at the customer's site. Normally, I would suspect that the "Printer Environment" option is ticked, but you say that's not the case here. I don't know the answer to that one.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
it is puzzling to me as well.

i changed the layout and made it fit on 8"x10" margins instead.

that solved the margin problems.

but, the printing one page only is still not working.

Ali Koumaiha
TeknoPCS Inc.
Dearborn heights, MI 48127
 
Printing 2 pages will only work if you allow printer settings to embed in the frx at the client side (of course not at the development side).

It's still in general a good advice to delete printer specific information from an frx, if you don't know where and with what printers it will be printed, or if it's printed with different printers.

But still then after you did so, embedding the printer specific infos for the printer really used helps. Foxpro's REPORT FORM command itself doesn't care for a COPIES=2 entry, for example, but the printer driver may (or may not). Still it has to be there so you have a chance to print more than the default 1 copy. As long as you protect the frx to have anything in there it will use printer defaults or foxpro defaults. See SYS(1037) in the help, it says much more about the details.

I may be wrong here, as I don't do much with reports, I mainly do Word or Excel automation for output and users then print from there. But from what I read about SYS(1037), it should help you.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top