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

Print to file

Status
Not open for further replies.

gregjohn

Technical User
Aug 13, 2001
29
US
I am trying to print to an adobe distiller postcript file. I select file within the printer driver properties. However, I continue to get prompted for a file name. Is there a way to print to a postscript file without getting prompted for the file name? This is crystal report I am printing so report form to file is not appropriate.

I tried "set printer to file abc.ps", but that did not keep me from being prompted.

Thanks
Greg
 
Thanks for the link. As far as I can tell, Rick assumed a foxpro report that you can control with "report form to file".

I am actually using the crystal reports printout method to start the print job. I have not been able to find a way to tell crystal to print to a file, so I thought using the printer driver properties might work. While it does, I keep getting prompted for the filename and I want to use this in an unattended fashion.
 

I am actually using the crystal reports printout method to start the print job.

Ok, now I'm confused...Adobe acrobat or Crystal?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
This might help (if you are in fact using crystal)
Code:
oCRYSTAL = CREATEOBJECT('CrystalRuntime.Application')
oReport = oCRYSTAL.OpenReport('C:\employee.RPT')
oExport = oReport.ExportOptions()
oExport.DestinationType = 1  
oExport.FormatType = 27 &&Excel formate
oExport.DiskFileName = "C:\employee.XLS" &&Naem of the file
oReport.Export(.F.) && Export without prompting
Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Mike:

Yes, this is confusing. I am using VFP 6.0 to call crystal and have crystal print a pdf. I appreciate your code using export, but I have already tried that. Apparently crystal has an issue when you are trying to print a report to a pdf that has graphs (which my report is full of). The qualtiy of the pdf is non client suitable. Crystal has provided some updated dll's that was suppose to fix the problem, but in my situation it has not. And, pdf files that are exported from crystal appear to be about 10x larger than those "converted" from a postscript file.

So...the only other option I have been able to figure out is to print through the postscript driver. But I get the filename prompt window. I thought another option would be to have crystal print to a file, but I have not been able to figure that out -- I'm not sure crystal can do it.

Greg
 
I thought another option would be to have crystal print to a file, but I have not been able to figure that out -- I'm not sure crystal can do it.

Print to file? What type? Crystal can export to about 37 different formats. Look at faq184-3331

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 

You could mostly could use the "AdobePDFMakerX" dll in conjunction with Word

oPDFMaker=CreateObject("AdobePDFMakerX.word")

Adn if you have intellisense, you can see all the methods available to you including

oPDFMaker.CreatePDF("c:\myWord.doc","c:\myPDF.pdf")

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top