Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CreatePDF and Windows NT/Windows 2000
Message
 
 
À
22/07/2002 14:15:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00681215
Message ID:
00681297
Vues:
19
Tried it just now, it didn't work. I changed CreatePDF to:
if vartype(m.tcFileName)<>"C" or empty(m.tcFileName)
	tcFileName='c:\windows\temp\tempfile.pdf' && Hardcoded name
else     
	tcFileName=forceext(m.tcFileName,"")
	if right(m.tcFileName,1)<>"."
	   tcFileName = m.tcFileName+"."
	endif   
endif
I'll try some tests with wwPDF (I already tried the Demo on my machine, it works, but I have Windows 95).


>Have you tried, just for grins, to make the call to createPDF() like this?
>
>createPDF("testPDF.")   && leave off the PDF extension
>
>Do you have a W2K machine you can try this on easily?
>
>>
>>As you see, it doesn't use report form command at all, but just does some manipulations with the Adobe to set name to be produced correctly.
>>
>>I then run command: REPORT FORM myREPORt TO PRINTER. Actually, we have a special application, called Reporter. So I place part of this command in one of the field of the MetaFile. The reporter application executes actual REPORT FORM command. My CreatePDF program I invoke in the InitExpr of the Report (InitExpr field of Reporter metafile). You see now, why the switch is not that simple...
>>
>>
>>>If this is how CreatePDF does its work, it should be easy for you to fix.
>>>
>>>I will test your procedure this afternoon.
>>>
>>>>Hi everybody,
>>>>
>>>>We were using CreatePDF program successfully for more than 2 years now. Just found, that this program doesn't work on Windows NT/Windows 2000. Instead the file with PRINTER.TXT.PDF name is created in the directory, which has the application, which runs the report.
>>>>
>>>>I need to solve the problem quickly and preferably without switching to another way of producing PDF (but if it's needed, we can). May be we have to change something in the Adobe installation itself. Each machine in the office has Adobe Acrobat 4 installed.
>>>>
>>>>Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform