PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV 24 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Prints the current worksheet of a document in "xlsx" or "xls" format.
Example
MyXLSX is string = "c:\temp\Accounts.xlsx"
iPreview()
iPrintXLS(MyXLSX)
Syntax

Printing the content of a Spreadsheet control or xlsDocument variable Hide the details

<Result> = iPrintXLS(<Document>)
<Result>: Boolean
  • True if the document was sent to the print spooler,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Document>: Corresponding type
XLS or XLSX document to print. This document corresponds to:
  • an xlsDocument variable.
  • the path of a Spreadsheet file (XLS or XLSX file).
  • a HFSQL memo corresponding to an XLS or XLSX document.

Printing the content of an "xlsx" or "xls" document Hide the details

<Result> = iPrintXLS(<Path> [, <Password>])
<Result>: Boolean
  • True if the document was sent to the print spooler,
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Path>: Character string (with quotes)
Path of a Spreadsheet file (XLS or XLSX file).
<Password>: Optional character string (with quotes)
Password to open the XLS or XLSX file to be printed.
Remarks
Only the current worksheet of XLS or XLSX document is printed. To print other worksheets, use an xlsDocument variable and change the number of current worksheet via ..Worksheet.
Component : wd240etat.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment