Sub PrintToPDF(ReportName As String, TempPath As String, _
#Pdf24 pdf printer review pdf
You need to have a PDF maker (adobe acrobat) as a printer named "Adobe PDF". Might not be very useful for you but might get you started. I'd suggest having the PDF distiller configured to output to a temp directory, so you can print one, move the result, then print another, and so on. Somebody mentioned Adobe Distiller Server - check your docs for Acrobat, I know it comes with basic Distiller, and you may be able to set up Distiller to run in a similar mode, where it watches Directory A and spits out PDF versions of any files that show up in Directory B.Īn alternative: since you're working with Access snapshots, you might be better off writing a VBA script that iterates through all the SNPs in a directory and prints them to the installed PDF printer.ĮTA: if you need to specify the output of the PDF printer, that might be harder. You can probably do this with an off-the-shelf product, without even opening Visual Studio at all. It sounds like what you actually want is a batch SNP to PDF converter. If there is anything you can do to avoid creating or editing PDF documents directly, I strongly advise that you do so. The big takeaway point here is that PDF IS HARD. I also was not expecting something that looks this trivial to be that hard to code.
I know this can be done better but I have only been here three months and there were other pressing concerns that were a lot more immediate.
pdf file, but I think the logic would be the same for any file type. I want to print a previosly created document to a pdf file.
Is there a relatively simple bit of code to print to a PDF printer (and of course assign it to print to a specific location) or will it require a the use of another library to print to pdf?
#Pdf24 pdf printer review full version
I thought about getting a sdk like ITextSharp, but it seem like overkill for what I am trying to do especially since we have the full version of Adobe. I am trying to print an existing file to PDF programmatically in Visual Basic 2008.