Saturday, May 22, 2010

How do I print a .pdf in Microsoft Access?

I currently have a module with the following code. Our document has changed from a word document to a .pdf document and I can't get the .pdf to print now. What do I need to change in the code below to make it print the .pdf?


______________________________________





Option Compare Database //


Option Explicit //





Public Declare Function GetDesktopWindow Lib "user32" () As Long





Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" _


(ByVal hwnd As Long, ByVal lpOperation As String, _


ByVal lpFile As String, ByVal lpParameters As String, _


ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long








Public Function PrintOther()


Dim WordObj As Object


Set WordObj = CreateObject("Word.Application")


WordObj.Documents.Open "C:\Program Files\maps\Store Map.doc"


WordObj.PrintOut Background:=False


WordObj.Quit


Set WordObj = Nothing


End Function


______________________________________

How do I print a .pdf in Microsoft Access?
i am not sure but look this us:


1. there are programs that add a "PDF printer" to list of your printers.


2. download and install one of those


3. see if you can call the print from your program





look up one called "pirmo pdf" i also know that adobe has one too but dunno if it is downloadable or not.





if you look enough you will find free ones for sure.
Reply:Not sure if this will help


http://www.vbforums.com/showthread.php?t...

online florist

No comments:

Post a Comment