1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. Wednesday, October 13 2021, 02:15 PM
  4.  Subscribe via 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?
Comment
There are no comments made yet.
Sergey Pashkov Accepted Answer
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.
Attachments (1)
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
ronaldo florendo jr Accepted Answer
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.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Sergey Pashkov Accepted Answer
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
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
  • Page :
  • 1


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

Categories

Announcements & News
  1. 0 subcategories
Valentina Studio
  1. 2 subcategories
Valentina Server
  1. 4 subcategories
Valentina Database ADK
  1. 0 subcategories
Valentina Reports ADK
  1. 0 subcategories
Other Discussions
  1. 2 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories