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

Report fonts nightmare 1

Status
Not open for further replies.

derren

Programmer
Mar 22, 2001
500
GB
Hi

I have a VFP6 distributed app with a veritable shedload of reports. So? Well, one of my clients has been using the app for about a year now without (much) complaint, until his system went belly up and he has had all of his computer reformatted and reinstalled (win98SE - printer HPlaserjet & HPdeskjet990).

He has been trained well by me in the art of pre-emting what I am going to tell him to do, so he has already installed the latest printer drivers and has all the latest software patches.

The features that I offer in the software are the ability to change the font and fontsize of the report fields (nice!) and they can choose a default number of copies for each report (which leaves "copies=x" in the report).

Suddenly the reports seems to ignore the fonts and number of copies.

Details: From the app print preview does not show the changed fonts, and when it is printed it is ignored as well

This is the same without a preview or prompt - bypassing the print preview window.

This does not change regardless of using different printers

The font changes are being done to the report.frx table!

When I print preview on the client's machine using full VFP I can see the changed fonts and further they print from it as well!

D'OH!

This is definitely a problem with his system but I am counting on someone having an incling on what is happening. It is escpecially odd because of his hardware has not changed at all.

Help me please whilst I still have hair...
Derren
[The only person in the world to like Word]
 
Derren,
Any chance your .EXE has the reports included in the .EXE? When running in Development mode it'll use the ones on disk, even if there is a ciopy in the .EXE! If not, any chance there are multiple sets of the report files - one you are changing, and one he is using? (Sometimes your FP PATH / DEFAULT set up can cause this kind of a problem.)

Rick
 
Hi Rick

No, all reports are loose in a directory, but you may have something there which has got me thinking. It is changing the right frx file, but I need to see whether it is trying to print the same one ... Lots of deleting and renaming will be afoot!

I shall report back... Derren
[The only person in the world to like Word]
 
Hi Rick

After some serious wrangling I have found the error, and it was down to me changing the wrong version of the report (I have two versions of all reports, one normal and one print-safe with larger margins). Thanks for your advice, it helped me take off my developer blinkers!

Star for you good Sir!

[fish] Derren
[The only person in the world to like Word]
 
Don't feel bad...I've done this myself. My drive is FULL of archives of my project, and every once in awhile I've found a report that was actually still pointing to the original directory. Clicking MODIFY in the Project Manager was bringing up a different file than using MODIFY REPORT in the Command window.

Oh, the humiliation when I finally figured it out...

Ian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top