How to set print options without a REPORT FORM ... PROMPT command (263287)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 6.0
- Microsoft Visual FoxPro for Windows 7.0
- Microsoft Visual FoxPro 8.0
- Microsoft Visual FoxPro 9.0 Professional Edition
This article was previously published under Q263287 SUMMARY ReportFormPrompt.exe is a sample that contains a Visual
FoxPro form that demonstrates how you can control the print options for a
printer without the REPORT/LABEL FORM ... TO PRINTER PROMPT command. MORE INFORMATIONThe
following file is available for download from the Microsoft Download
Center: Release Date:
May-19-2000 For additional information about how to download
Microsoft Support files, click the following article number to view the article
in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
How to Use the ReportFormPrompt.exe SampleNOTE: This code is intended for use with Visual FoxPro 6.0
only. At times, you may need to control the print options for a
printer. The options may include the list of printers to which you print a
report/label, the number of copies you need to print, or any other options that
are available with the REPORT FORM...PROMPT command. There is a Visual FoxPro form in the
ReportFormPrompt.exe sample that demonstrates how you can control these print
options by using the Windows Spooler API and Windows API. The sample
form also demonstrates how you can hide printers from the user so that
unsupported printers do not display. Copy the ReportFormPrompt.exe
sample to a folder and run the .exe file. The ReportFormPrompt.exe
file contains the following files: foxwingdi.h | getversion.vct | getversion.vcx | landscape.bmp | landscape.msk | portrait.bmp | portrait.msk | readme.txt | reportformprompt.sct | reportformprompt.scx | Syntax:
DO FORM ReportFormPrompt [WITH [cReportName] [, cForWhile] [, cScope]]
PARAMETERS:cReportName | If empty, user is prompted. If a file
extension is not supplied, it defaults to FRX. | cForWhile | Add any "FOR <expr>" and/or "WHILE
<expr>". | cScope | Default to ALL | RETURNS: Nothing EXAMPLE:
DO FORM ReportFormPrompt WITH "MyReport.frx", "FOR CustID = 3 WHILE OrderID = 2", "Next 100"
REFERENCESFor additional information, click the
article numbers below to view the articles in the Microsoft Knowledge Base: 162798 HOWTO: Use SET PRINTER TO NAME to Specify Report Destination
131201 Print Setup Options Saved with the Report
251236 HOWTO: Programmatically Set the Number of Copies for a Report
Contributions by: Tom Zeller DSN,
Inc. 821 B Street, Centralia, WA 98531 (C) Microsoft
Corporation 2000, All Rights Reserved Microsoft provides third-party contact information to help you find
technical support. This contact information may change without notice.
Microsoft does not guarantee the accuracy of this third-party contact
information.
Modification Type: | Major | Last Reviewed: | 2/17/2005 |
---|
Keywords: | kbdownload kbfile kbinfo kbprint kbReportWriter kbSample KB263287 kbAudDeveloper |
---|
|