I have a XML file and a CSS file. See below
Dim xmlPrint As Prince = New Prince("C:\Program Files\Prince\Engine\bin\prince.exe")
xmlPrint.SetLog(Server.MapPath("Print.log"))
xmlPrint.AddStyleSheet(Server.MapPath("Report.css"))
If xmlPrint.Convert(Server.MapPath("Report.Xml"), Response.OutputStream) Then
Response.AddHeader("Content-Type", "application/pdf")
Response.AddHeader("Content-Disposition", "attachment; filename=" & "Report.pdf")
Response.Flush()
Response.End()
Else
Response.Write("<html><body><h2>Error generating PDF</h2></body></html>")
End If
This works correct.
I have also an image file or chart. Can somebody my explain what the beste way is to include an image in this report
Dim xmlPrint As Prince = New Prince("C:\Program Files\Prince\Engine\bin\prince.exe")
xmlPrint.SetLog(Server.MapPath("Print.log"))
xmlPrint.AddStyleSheet(Server.MapPath("Report.css"))
If xmlPrint.Convert(Server.MapPath("Report.Xml"), Response.OutputStream) Then
Response.AddHeader("Content-Type", "application/pdf")
Response.AddHeader("Content-Disposition", "attachment; filename=" & "Report.pdf")
Response.Flush()
Response.End()
Else
Response.Write("<html><body><h2>Error generating PDF</h2></body></html>")
End If
This works correct.
I have also an image file or chart. Can somebody my explain what the beste way is to include an image in this report