Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Amyuni PDF fails to work in Windows!?
Message
De
16/11/2007 14:18:07
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Amyuni PDF fails to work in Windows!?
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01269511
Message ID:
01269511
Vues:
53
First, I have to admit that I don't do reports.

I have this old app that basically fetches data from SQL Server and prepares a report then exports it to Excel.

Earlier this year I was asked to revise it and add PDF output as well. The app was reopened and still worked on in VFP 8.0 (made no sense to recompile and redistribute VFP 9 runtimes for such a small app).

I added a radio button choice for PDF, then created an FRX and used AMYUNI PDF Converter which I had used successfully in the past here in another app.

Here's the issue. Tried all of these and still no go.

- Query data
- Install AMYUNI
- Save current printer to a form's property
- SET PRINTER TO AMYUNI PDF
- (in debugger I check that SET("PRINTER", 1), SET("PRINTER", 2), SET("PRINTER", 3) have the proper values.
- (while in debugger I open the Windows XP "Printers and Faxes" dialog and verify the PDF driver has been set as default
- REPORT FORM TO PRINT
- Restore printer to previous default

No matter what, it still prints to paper! Somewhow Windows ignores its own set default and prints to the previous default printer (we have many printers set up here. It just ignores the new setting and stays with the last one).

This has worked before. I tried in the dev box in VFP, then tried the compiled EXE in 3 of the client boxes that will run this app. All of them are printing to paper instead! We need PDF, not paper, as the report has to be emailed.

Any clues on where to look for this? Pulling hair trying to make sense of this.

TIA


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform