H
hughess7
Hi all
I have spent most of the day reading the newsgroups and google etc to
automate printing an access report to PDF but have not managed to get
exactly what I want to achieve.
We have Office Prof 2003 (inc Access and Outlook) and Adobe Acrobat 6.
I want to be able to press a button on a form and have a particular report
produced in PDF format then emailed to a group of users which remain the same
each week (can create distribution group in Access for this if best way?). I
want it all automated without user intervention and the naming convention to
be "Itinerary - Date". Date being the current date or preferably the next
Monday following the current date.
I know products exist such as PDF995 but I would prefer to use what we
already have if possible? I can set the report in Access 2003 to print to a
specific printer and change this to the Adobe PDF device but this only works
if I leave the 'prompt for filename' selection turned on ie the user gets a
dialog box and has to specify a location and filename. If I turn this off it
tries to print but fails for some reason, the report is sent to the Adobe PDF
printer with filename defaulting to the Caption of the report (which I have
tried changing programmatically via report_activate event too with no joy
either) but just produces a failure error after approx 1 minute of sitting in
the print queue. Not sure if this is due to how the print device was
installed as 3rd party IT suppliers set it up (Port is mydocuments\*.pdf).
I have tried using code for the PDF creation (trying to get that right
before moving on to attempting the email!) that I have found such as
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=35321&lngWId=1
but this refers to Adobe 5 and I can't seem to get it to work so far. Has
anyone else had any joy with this? The comments on the website infer it is
possible and others have got working - can anyone help before I ditch and
attempt alternative solutions.
Thanks in advance for any help.
Sue
I have spent most of the day reading the newsgroups and google etc to
automate printing an access report to PDF but have not managed to get
exactly what I want to achieve.
We have Office Prof 2003 (inc Access and Outlook) and Adobe Acrobat 6.
I want to be able to press a button on a form and have a particular report
produced in PDF format then emailed to a group of users which remain the same
each week (can create distribution group in Access for this if best way?). I
want it all automated without user intervention and the naming convention to
be "Itinerary - Date". Date being the current date or preferably the next
Monday following the current date.
I know products exist such as PDF995 but I would prefer to use what we
already have if possible? I can set the report in Access 2003 to print to a
specific printer and change this to the Adobe PDF device but this only works
if I leave the 'prompt for filename' selection turned on ie the user gets a
dialog box and has to specify a location and filename. If I turn this off it
tries to print but fails for some reason, the report is sent to the Adobe PDF
printer with filename defaulting to the Caption of the report (which I have
tried changing programmatically via report_activate event too with no joy
either) but just produces a failure error after approx 1 minute of sitting in
the print queue. Not sure if this is due to how the print device was
installed as 3rd party IT suppliers set it up (Port is mydocuments\*.pdf).
I have tried using code for the PDF creation (trying to get that right
before moving on to attempting the email!) that I have found such as
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=35321&lngWId=1
but this refers to Adobe 5 and I can't seem to get it to work so far. Has
anyone else had any joy with this? The comments on the website infer it is
possible and others have got working - can anyone help before I ditch and
attempt alternative solutions.
Thanks in advance for any help.
Sue