1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. 水, 10月 13 2021, 02:15 PM
  4.  メールで購読
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.

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