1. ronaldo florendo jr
  2. Valentina Reports ADK
  3. 月, 7月 10 2017, 03:37 PM
  4.  メールで購読
Hi Guys,

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

Please help.
コメント
There are no comments made yet.
Jochen Peters 承諾済みの回答
from where like XOJO, C++
コメント
There are no comments made yet.
ronaldo florendo jr 承諾済みの回答
For XOJO
コメント
There are no comments made yet.
Jochen Peters 承諾済みの回答
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
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
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
コメント
There are no comments made yet.
ronaldo florendo jr 承諾済みの回答
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?
コメント
There are no comments made yet.
Sergey Pashkov 承諾済みの回答
If the printer is attached to the user computer, I don't think it is possible to skip the preview.
コメント
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