Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print a report twice
Message
 
 
To
31/07/2003 09:18:47
General information
Forum:
Visual FoxPro
Category:
Crystal Reports
Miscellaneous
Thread ID:
00814839
Message ID:
00815507
Views:
18
Craig,

Your Book ( page 348 - 351 ).

I do not have method for the click??¶

Is what I begin well?
*--------------------------------------------------------------- 08/2003
*-- 
DEFINE CLASS CrystalViewerEvents AS SESSION OLEPUBLIC
  IMPLEMENTS PrintButtonClicked IN "c:\program files\seagate software\viewers\activexviewer\crviewer.dll"

  oRpt = NULL
  
  PROCEDURE CLICK( useDefault AS Boolean )
    * PROCEDURE PrintButtonClicked_Click( UseDefault As Boolean )
    =ErrorMsg(" Test ! " )
    * add user code here
  ENDPROC

ENDDEFINE
>Yes. Use the PrintButtonClicked event method.
>
>>Hi craig,
>>
>>Thank for your assistance.
>>It is possible to handle the printer button of CrViewer ?
>>(EventHandler ??????)
>>
>>All reports are first on the previewForm before PrintJop.....
>>
>>bernhart
>>
>>>You can't use the print dialog to do it. When you enter the number of copies in that dialog, a command is sent to the printer to print the report twice. It's all handled outside Crystal.
>>>
>>>To get this to work, you'll need to create your own printer dialog. Grab the number of copies and then call the Printout function the number of times needed. Pass a parameter to the report that specifies if the text should be printed or not.
>>>
>>>>Ok craig.
>>>>
>>>>How to place a label one the CR so that it is printed with the second impression or second copies ?
>>>>Suppress one the First Impression.
>>>>
>>>>EventHandler?
>>>>
>>>>
>>>>bernhart
>>>>
>>>>
>>>>
Previous
Reply
Map
View

Click here to load this message in the networking platform