Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adobe Directory Woes
Message
De
10/04/2003 12:09:45
 
 
À
10/04/2003 11:59:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Produits tierce partie
Divers
Thread ID:
00776125
Message ID:
00776168
Vues:
17
>>>>Hi, all.
>>>>
>>>>
>>>>Our clients have installed Adobe PDFWriter (version 4.0), and want to send some of our reports to this driver to create .PDF files from the output. We find that the PDFWriter CHANGES THE VFP DEFAULT DIRECTORY to the folder of the file created (before the report is created). Since we have some reports with relative pathing for images, they get "Invalid Path and/or Filename" errors within the report. After the report is over, it has CD'd to the folder of the file the PDFWriter was trying to create.
>>>>
>>>
>>>You could try the foxpro Set Path statment to the directory where the images are so Fox could still locate them.
>>
>>Chuck -
>>
>>Our problem is that when we issue the REPORT FORM x TO PRINTER NOCONSOLE command, we are in the folder C:\MYAPP. If the user is sending the report to PDFWriter, they might opt to put the file in F:\NETWORK\TEMP\OUTPUT.PDF. While the report is running (and from here on out), we are now in the F:\NETWORK\TEMP\ directory by default. We have coded our report engine to put us back in whatever directory we were in before running the report in the line of code following the REPORT FORM... command. However, I cannot control where I am while the report is running.
>>
>>I hope this more clearly states our problem.
>>
>>Thanks.
>>
>>- George
>
>Before you run report form command
>SET PATH TO C:\MYAPP
>This tells VFP that if it can't find the file in the directory it wants to go look for that file in C:\MYAPP folder.

Our actual SET PATH command for this application is:
set path to ;
	data, menus, rptforms, reports, ;
	rptPrgs, ;
	vcx\forms, vcx\managers, vcx\controls, vcx\schedule, ;
	.\forms, .\prgs, .\cRpts, .\other, c:\vCTEMP, e:\vctemp, ;
	\sf\sdt\dbcx, \sf\sdt\source, \sf\sdt, ;
	.\vvc\FORMS, .\vvc\vcx\managers, .\vvc\vcx\forms, .\vvc\vcx\controls, ;
	.\work, .\nitejob, .\sports
We can't set it to a hard-coded path, we need the path to be relative (for other reasons beyond reporting).

Unfortunately, this application was developed without a compiled EXE. The users run a .PRG, which launches the menu, etc.

Again, my problem is that *during* the report output, Adobe switches the default directory. I can set it before the output, and I can re-set it after. My problem is that it changes in the middle of the REPORT FORM... command.

Thanks again.

- George
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform