I am trying to merge two files (in1 and in2) and create a new file (ut1=outfile) and I have NO luck.
Se coding example and error message below.
Is there anyone who had success with the Merge function in Bullzip.PdfWriter?
// test
in1 := 'C:\Faktura1.pdf';
in2 := 'C:\default2.pdf';
ut1 := 'C:\Faktura2.pdf';
Datetime := 2000;
Printer := Pdfmerge.DefaultPrinterName();
ComPdfSet := ComPdfSet.ComPdfSettings;
ComPdfSet.SetValue('MergeFile', in1 + '|' + in2);
filin := filin.UploadUtility;
PDFInstans := Pdfmerge.PdfUtil();
Pdfmerge.Merge(ComPdfSet,ut1,Printer,Datetime);
Variables
Pdfmerge DotNet Bullzip.PdfWriter.PdfUtil.'Bullzip.PdfWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=041d71cacb6e853c'
in1 Text 30
in2 Text 30
ut1 Text 30
Printer Text 30
Datetime Integer
PdfSet DotNet Bullzip.PdfWriter.PdfSettings.'Bullzip.PdfWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=041d71cacb6e853c'
ComPdfSet DotNet Bullzip.PdfWriter.ComPdfSettings.'Bullzip.PdfWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=041d71cacb6e853c'
Compdfutil DotNet Bullzip.PdfWriter.ComPdfUtil.'Bullzip.PdfWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=041d71cacb6e853c'
infiles DotNet System.String.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
filin DotNet Bullzip.PdfWriter.UploadUtility.'Bullzip.PdfWriter.Upload, Version=1.0.0.0, Culture=neutral, PublicKeyToken=439886f61986a3e4'
filut File
PDFInstans DotNet Bullzip.PdfWriter.PdfUtil.'Bullzip.PdfWriter, Version=4.0.0.0, Culture=neutral, PublicKeyToken=041d71cacb6e853c'
Error text: A call to Bullzip.PdfWriter.PdfUtil.Merge failed with this message; The type of one or more arguments does not match the method's parameter type.
Help wanted!
NAV Version 2013.
Rgds
Goran
0
Comments
The information is on the pdf printer website...
http://www.bullzip.com/products/pdf/doc/examples/dynamics-nav-invoices/info.php
Check the sample code and see what might be missing