Problems with COM

Hi,

I used the example in the COM Doku for my own application.

 

In this appliacation i have to create severeal PDF Files.

I am using Excel and VBA.

I took the Routine: "Public Sub PDFDruck(DatName As String,"  as shown in the example and then i wantet to print several documents.

 

The first document is okay, but all the other documents are nearly empty.

They contain only:

ERROR: undefined

OFFENDING COMMAND: GpBBeg

Stack:

0

 

Does anyone have an idea how to solve this problem?

Thanks a lot, Peter

 

(Siorry for my english, but i am not a native speaker)