1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. Mittwoch, Oktober 13 2021, 02:15 PM
  4.  Abonnieren via E-Mail
I'd made a xojo web application and successfully shown the report via HTMLVIEW control.
Is there a toolbar available to offer use for a zoom in/out for the previewed report?
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Ronaldo,

So you generate HTML to show it in WebHTMLViewer, right?
If you generate a PDF and show it in the same viewer Zoom In/Out toolbar should appear automatically.
Anhänge
Kommentar
There are no comments made yet.
ronaldo florendo jr Akzeptierte Antwort
Yeah, I generated the report via HTML but no toolbar is shown.

data = mReport.PrintToBuffer( EVReportPrintType.kToHTML, 1 )
TMLViewer1.LoadHTML( data )




I tried to use
EVReportPrintType.kToPDF
but my web app didn't show anything.
Kommentar
There are no comments made yet.
Sergey Pashkov Akzeptierte Antwort
Hello Ronaldo,

PDF can't be shown directly, only by URL.

So WebHTMLView has URL property.
Try to set it to URL of some PDF file available online.
PDF is embedded as iframe on a webpage.

If that looks fine, here's how to embed generated report.

1. Generate PDF and save it as WebFile (for example, in a WebPage as mPDF property)


// MAKE PDF in RAM
Dim pdfData As String = mReport.PrintToBuffer( EVReportPrintType.kToPDF, 1 )

// Prepare downloads
mPDF = New WebFile
mPDF.MimeType = "application/pdf"
mPDF.FileName = "report.pdf"
mPDF.ForceDownload = False
mPDF.Data = pdfData



2. Set WebHTMLView.URL property to point to the mPDF URL
Kommentar
There are no comments made yet.
  • Seite :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.