Template problem

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
Markten
Posts: 11
Joined: Thu Jan 19 2006

Template problem

Post by Markten » Thu Jan 26 2006

Hi Amyuni team!
I have a problem with Template

Here I've created a 1 Page template, and also I've created a Data document that contains 3 pages

First I'm loading the Template with the Flag TemplateRepeat=True
after that I'm loading the Data document(3 pages),
and when the program try to load this document the program crash ...accessing memory bla bla

What I'm hoping to have at the end is 3 pages of data with the template repeated on each page

This code work fine when my data document has only on page, but if my data document has more than one page my program crash

Here my code, did I need to add something ?

With PDF1
.TemplateMode = 1
.TemplateRepeat = True

.Open "c:\MyTemplate.PDF", "" 'Here my 1 Page Template

.TemplateMode = 0
.ReportState = acReportStateDesign

.Open "c:\testFilledServiceInvoice3pages.PDF", "" 'Here My 3 page Data document
'I've REM this line .Open "c:\testFilledServiceInvoice1pages.PDF", "" 'When I uncomment this line the program work fine , this my Data Document with only 1 page


' refresh the display (in case we're viewing the file)
.CurrentPage = 1
.Refresh

' save the file
.Save "c:\test.pdf", 0 'Save the End Result
End With

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Fri Jan 27 2006

I will check this issue furthermore with our developers.

A possible workaround is to have the template file having the same number of pages as the data file.

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Tue May 08 2007

This issue is solved in the new version of the PDF Creator. Please feel free to download the latest version from our site.

Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan » Mon May 28 2007

Hello,

Did you get the chance to check the new version?

Post Reply