1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. Monday, July 10 2017, 03:37 PM
  4.  Subscribe via email
Hi Guys,

Is there a functionality for XOJO WEB Report ADK where it can print directly to printer?

Please help.
Comment
There are no comments made yet.
Jochen Peters Accepted Answer
from where like XOJO, C++
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 1
ronaldo florendo jr Accepted Answer
For XOJO
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 2
Jochen Peters Accepted Answer
try

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

Exception err as VException
dim errNumber as Integer = err.ErrorNumber
dim errString as String = err.Message
MsgBox "2)Error " + errString
end

HTMLViewer1.LoadPage(data)

use HTMLViewer1.Print
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 3
Sergey Pashkov Accepted Answer
Hello Ronaldo,

For WEB you can use WebHTMLViewer (http://docs.xojo.com/index.php/WebHTMLViewer.Print)

But as said on the description page its behaviour depends on the user browser:
Firefox and Internet Explorer print the contents of the entire web page, not just the WebHTMLViewer.


Another way is to generate the PDF and let the user print it.
From our example (V4RB_7/Examples/VReport/WebOnSQLite/WebOnSQLite.xojo_binary_project):

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

// Prepare download
mPDF = New WebFile
mPDF.MimeType = "application/pdf"
mPDF.FileName = "report.pdf"
mPDF.ForceDownload = False
mPDF.Data = pdfData
.....
// Present download link to generated PDF
Link_PDF.URL = mPDF.URL
Link_PDF.Text = "PDF File - Click here to see it..."


mPDF - is the property of the WebPage of type WebFile
Link_PDF - is the link on the WebPage
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 4
ronaldo florendo jr Accepted Answer
Thanks!

Is it possible to print directly to printer without without the PREVIEW?

Assuming I am creating web based Point of Sales. I wanted that when the user CLICKED paid, the web app automatically print the receipt. Is it possible?
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 5
Sergey Pashkov Accepted Answer
If the printer is attached to the user computer, I don't think it is possible to skip the preview.
Comment
There are no comments made yet.
  1. more than a month ago
  2. Valentina Reports ADK
  3. # 6
  • 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. 0 subcategories
BETA Testing
  1. 0 subcategories
Education & Research
  1. 0 subcategories
Omegabundle
  1. 0 subcategories