Xojo install plugin

broken image

Now, add an HTMLViewer control to the Web page. And, finally, preview the PDF Document loading it in theĪs you can see here, this simple fragment of code is in charge of creating a sample PDF document, downloading it and also previewing it in an HTMLViewer instance. set the ForceDownload property back to False Because we want to display the PDF file in an HTMLViewer the Download method on our WebFile instance …so the file is, in effect, downloaded when calling It's important to set the right MIMEType for the file so assign that to the 'data' property of the the inner contents of the PDF document at this point returns as a MemoryBlock (Direct conversion to String) This is the thing: the PDFDocument.ToData method to the wf property added to the Web page Creating a new WebFile instance and assigning it Here is where the **important** thing starts G.DrawText('Really simple PDF content', 20, 20) Next, add the Pressed Event Handler to it and type the following snippet of code in the associated Code Editor: // Nothing really interesting here In the associated Inspector Panel for the button change the following property: To start, create a Web project, select Web in the Navigator and drop a WebButton from the Library onto the upper-center of the page in the Layout Editor.

broken image