?
Solved

Suppress Printer Dialog when printing Crystal Report

Posted on 2002-06-04
3
Medium Priority
?
580 Views
Last Modified: 2010-05-02
I sometimes want to print a series of the same report in a loop- and I do NOT want the "printer? copies? coallated?" dialog box to pop up.

How can I suppress the printer dialog?
0
Comment
Question by:michael_wiswell
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 1

Expert Comment

by:Moondancer
ID: 7055127
Your question posted 7 times, costing you 7 X the points.  I will be deleting all others.  You'll avoid this problem by not using your browser control keys or refresh button, but rather the reload button.

Moondancer - EE Moderator
0
 
LVL 11

Accepted Solution

by:
arana earned 200 total points
ID: 7055301
first off

wich version of everything are you using?

there are some properties in the report that allow you to
disable the dialog box.



using the OCX.

myreport.copiestoprinter=3

from:
http://www.mobileapps.com/products/parallelcrystal/PCREDocumentation/AutomationServer/HTMLQuickReference/Report.html#PrintOut


RDC:
PrintOut(PromptUser, NumberOfCopy, Collated, StartPageNumber, StopPageNumber, OutputFileName)

The PrintOut method prints out the specified pages of the report to the default printer specified in the report.

Parameters:
 
PromptUser
 (Optional) But only FALSE is acceptable with the MAS product.
Specifies Boolean value indicating if the user should be prompted for printer options.
 
NumberOfCopies
 (Optional) Specifies the number of report copies you want printed.
 
Collated
 (Optional) Specifies Boolean value specifying whether or not you want the report copies collated.
 
StartPageNumber
 (Optional) Specifies the first page you want printed.
 
StopPageNumber
 (Optional) Specifies the last page you want printed.
 
0
 

Author Comment

by:michael_wiswell
ID: 7056968
Report.PrintOut(False)

This did it, thanks.

For the record: VB 6.0
CR Developer, Product Type: Full, Product 8.5.0.217
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses
Course of the Month11 days, 12 hours left to enroll

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question