GDPicture Update
This commit is contained in:
@@ -29,6 +29,8 @@ Public Class XRechnungViewDocument
|
||||
_logger.Debug("Create_PDFfromXML() Start")
|
||||
|
||||
Try
|
||||
Dim LicenseManager = New LicenseManager()
|
||||
LicenseManager.RegisterKEY(_gdpictureLicenseKey)
|
||||
Dim oXRechnungFile = pXmlFile.FullName
|
||||
Dim oNewFileinfo As FileInfo
|
||||
Dim oXmlFilePath = pXmlFile.FullName
|
||||
@@ -48,7 +50,7 @@ Public Class XRechnungViewDocument
|
||||
|
||||
'oViewRecieptFilename = oViewRecieptFilename.Replace(".xml", ".pdf")
|
||||
oViewRecieptFilename = Regex.Replace(oViewRecieptFilename, ".xml", ".pdf", RegexOptions.IgnoreCase)
|
||||
Using gdpicturePDF As New GdPicturePDF()
|
||||
Using gdpicturePDF As New GdPicturePDF
|
||||
' Create a new PDF/A-2a compliant document (blank, no pages yet)
|
||||
Dim status As GdPictureStatus = gdpicturePDF.NewPDF(PdfConformance.PDF_A_2a)
|
||||
If status = GdPictureStatus.OK Then
|
||||
@@ -59,7 +61,7 @@ Public Class XRechnungViewDocument
|
||||
MsgBox("The NewPDF(PdfConformance.PDF_A_2a) method has failed with the status: " + status.ToString(), "Example: NewPDF")
|
||||
End If
|
||||
End Using
|
||||
Dim MyGDPicturePDF = New GdPicturePDF()
|
||||
Dim MyGDPicturePDF = New GdPicturePDF
|
||||
|
||||
Dim oPDFStatus As GdPictureStatus = MyGDPicturePDF.NewPDF(PdfConformance.PDF_A_2a)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user