Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can a Report (FRX) be printed from the web?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00789317
Message ID:
00790533
Vues:
27
>>>>Hi Erik!
>>>>
>>>>Thanks for the reply. I did some checking on the Microsoft web site, and I came across this link:
>>>>
>>>>http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnserv/html/server033099.asp
>>>
>>>This article describes how to print to a printer on the same network as the server. Is this what you want? Is your application running over the internet, or on an intranet, where the users can walk to the printer connected to the web server?
>>
>>The printer could be on the same network as the server. I guess this solution is not what I am looking for. I want to print to the user's local printer not to a printer attached to the server. I suppose I need some client side code to print the report locally.
>>
>>I did the REPORT FORM ...TO FILE, went to DOS, and ran "type file > prn". This worked. Now, I only I could the same from ASP. Any ideas?
>>
>>Thanks again for your help!
>>Tim
>
>Again, I think your best bet is to use PDF. PostScript files won't work through a browser, and REPORT FORM TO ASCII is not dependable.

Hi Erik!

I am sorry to be pest. You mentioned that creating a PDF file would be the way to go. So, I thought I would give that a try. We have Adobe Acrobat 5.0. I took the postscript file from the REPORT FORM...TO FILE and called the acrobat distiller using the following:

acrodist /N /Q report.txt

This created the file report.log with the following:

%%[ Error: syntaxerror; OffendingCommand: ) ]%%
%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%
%%[ Warning: PostScript error. No PDF file produced. ] %%

The PDF file was not created. I am under the impression that you have done this before. Did you use Adobe Acrobat or some other package? Any help would be greatly appreciated!

Thanks for your time!
Tim
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform