1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. Среда, Октябрь 13 2021, 02:15 PM
  4.  Подписаться через email
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?
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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.
Вложения
Комментарий
There are no comments made yet.
ronaldo florendo jr Ответ принят
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.
Комментарий
There are no comments made yet.
Sergey Pashkov Ответ принят
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
Комментарий
There are no comments made yet.
  • Страница :
  • 1


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