A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Append to PDF file using the OutputTo command



 
 
Thread Tools Display Modes
  #1  
Old April 14th, 2008, 01:29 PM posted to microsoft.public.access.reports
Rolf
external usenet poster
 
Posts: 33
Default Append to PDF file using the OutputTo command

I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?

Many thanks

Rolf
  #2  
Old January 4th, 2010, 02:16 PM posted to microsoft.public.access.reports
jd
external usenet poster
 
Posts: 2
Default Append to PDF file using the OutputTo command

Did you ever find a solution for this issue? I need to figure out how to do this as well...



Rol wrote:

Append to PDF file using the OutputTo command
14-Apr-08

I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?

Many thanks

Rolf

Previous Posts In This Thread:

On Monday, April 14, 2008 8:29 AM
Rol wrote:

Append to PDF file using the OutputTo command
I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?

Many thanks

Rolf


Submitted via EggHeadCafe - Software Developer Portal of Choice
Add Windows GridView control in WPF dynamically in C#.
http://www.eggheadcafe.com/tutorials...view-cont.aspx
  #3  
Old January 4th, 2010, 03:20 PM posted to microsoft.public.access.reports
tighe
external usenet poster
 
Posts: 53
Default Append to PDF file using the OutputTo command

all,
below is code i use, hope it helps. i have the "Acrobat Adobe 8.0 Type
library" reference. i figure it should work in earlier versions but doubt
you can reference the library if you just have PDF viewer. the save file can
be the same as the orginal, i have also looped this type of code.

Function PDF_Combine_Final()
Dim AcroExchApp As Acrobat.CAcroApp
Dim AcroExchPDDoc As Acrobat.CAcroPDDoc
Dim AcroExchInsertPDDoc As Acrobat.CAcroPDDoc
Dim strFileName As String, strPath As String
Dim iNumberOfPagesToInsert As Integer
Dim iLastPage As Integer

Set AcroExchApp = CreateObject("AcroExch.App")
Set AcroExchPDDoc = CreateObject("AcroExch.PDDoc")

strFileName = "C:\OriginalFile.pdf"
AcroExchPDDoc.Open (strFileName)


iLastPage = AcroExchPDDoc.GetNumPages - 1
Set AcroExchInsertPDDoc = CreateObject("AcroExch.PDDoc")

AcroExchInsertPDDoc.Open ("C:\FileToInsert.pdf")
iNumberOfPagesToInsert = AcroExchInsertPDDoc.GetNumPages

AcroExchPDDoc.InsertPages iLastPage, AcroExchInsertPDDoc, 0,
iNumberOfPagesToInsert, 0
AcroExchInsertPDDoc.Close



PDF_Combine_Final_Exit:
AcroExchPDDoc.Save 1, "C:\NewFile.pdf"

AcroExchApp.Exit

Exit Function



End Function

"JD" wrote:

Did you ever find a solution for this issue? I need to figure out how to do this as well...



Rol wrote:

Append to PDF file using the OutputTo command
14-Apr-08

I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?

Many thanks

Rolf

Previous Posts In This Thread:

On Monday, April 14, 2008 8:29 AM
Rol wrote:

Append to PDF file using the OutputTo command
I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?

Many thanks

Rolf


Submitted via EggHeadCafe - Software Developer Portal of Choice
Add Windows GridView control in WPF dynamically in C#.
http://www.eggheadcafe.com/tutorials...view-cont.aspx
.

  #4  
Old January 4th, 2010, 05:42 PM posted to microsoft.public.access.reports
Mark Andrews[_2_]
external usenet poster
 
Posts: 600
Default Append to PDF file using the OutputTo command

You should be able to shell out to run some kind of command line app to
merge pdf files (without having Adobe Acrobat and doing automation).
http://www.google.com/search?sourcei...n&q=pdf+append
I believe there are a ton of options.

I think stephen lebans code appends pdf files as well.

HTH,
Mark
RPT Software
http://www.rptsoftware.com

JD wrote in message ...
Did you ever find a solution for this issue? I need to figure out how to
do this as well...



Rol wrote:

Append to PDF file using the OutputTo command
14-Apr-08

I am using the DoCmd.OutputTo command in Access 2007 to output reports in
PDF
format. is it possible to make this command append to an already existing
PDF
file?

Many thanks

Rolf

Previous Posts In This Thread:

On Monday, April 14, 2008 8:29 AM
Rol wrote:

Append to PDF file using the OutputTo command
I am using the DoCmd.OutputTo command in Access 2007 to output reports in
PDF
format. is it possible to make this command append to an already existing
PDF
file?

Many thanks

Rolf


Submitted via EggHeadCafe - Software Developer Portal of Choice
Add Windows GridView control in WPF dynamically in C#.
http://www.eggheadcafe.com/tutorials...view-cont.aspx



  #5  
Old January 12th, 2010, 05:28 AM posted to microsoft.public.access.reports
Tony Toews [MVP]
external usenet poster
 
Posts: 3,776
Default Append to PDF file using the OutputTo command

JD wrote:

I am using the DoCmd.OutputTo command in Access 2007 to output reports in PDF
format. is it possible to make this command append to an already existing PDF
file?


Is there any way, from within Access, to concatenate several PDF
reports?


Install the open source software PDFCreator. (Watch out for the
*rsehole $$$ software with the same name.)
http://sourceforge.net/projects/pdfcreator/ Take a look at the VB
Script options in the C:\Program Files\PDFCreator\Scripts folder.
Figure out which one you need. With a bit of work you can convert the
VBScript code to VBA code.

As does Lebans solution although it's buried deep in the code. Given
that A2010 no longer supports snapshot format files which Lebans
solution creates first then I'd suggest using the above solution or
the others in this thread.

A2000ReportToPDF is an Access 2000 database containing a function to
convert Reports and Snapshot files to PDF documents. No PDF Printer
driver is required. Free.http://www.lebans.com/reporttopdf.htm

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
  #6  
Old January 12th, 2010, 09:17 PM posted to microsoft.public.access.reports
David W. Fenton
external usenet poster
 
Posts: 3,373
Default Append to PDF file using the OutputTo command

"Tony Toews [MVP]" wrote in
:

Install the open source software PDFCreator. (Watch out for the
*rsehole $$$ software with the same name.)
http://sourceforge.net/projects/pdfcreator/ Take a look at the VB
Script options in the C:\Program Files\PDFCreator\Scripts folder.
Figure out which one you need. With a bit of work you can convert
the VBScript code to VBA code.


Er, there are native VBA examples for Access, Excel and Word.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:03 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.