Posted 16 April 2018, 4:21 pm EST
an error is raised when I attempt to export 1 page from the attached .pdf
The Error is “The method or operation is not implimented.”
The AttachmentPath is a string of the Full Path to the .PDF
The Pages parameter is a string with the value “1”
Dim C1PdfDocumentSource As C1.Win.C1Document.C1PdfDocumentSource Dim PdfFilter As C1.Win.C1Document.Export.PdfFilter Dim TempFilePath As String = Nothing C1PdfDocumentSource = New C1.Win.C1Document.C1PdfDocumentSource() PdfFilter = New C1.Win.C1Document.Export.PdfFilter() TempFilePath = System.IO.Path.Combine(System.IO.Path.GetTempPath(), "AttachmentPages.PDF") If System.IO.File.Exists(TempFilePath) Then System.IO.File.Delete(TempFilePath) C1PdfDocumentSource.LoadFromFile(AttachmentPath) PdfFilter.FileName = TempFilePath PdfFilter.Range = New C1.Win.C1Document.OutputRange(Pages) C1PdfDocumentSource.Export(PdfFilter) C1PdfDocumentSource = Nothing
The error is raised on the .Export method.
John