Results 1 to 8 of 8

Thread: [RESOLVED] Is the user click on print button (CR) ?

  1. #1

    Thread Starter
    Hyperactive Member DubweiserTM's Avatar
    Join Date
    Dec 2005
    Location
    St-Ferdinand, Québec
    Posts
    427

    Resolved [RESOLVED] Is the user click on print button (CR) ?

    Is it possible to know if the user click on print button in Crystal Reports preview window ???

    I have to know this because if the user print his formular, my application have to save the reference number to a database...I have to save this number only if a formular is printed...

    I cant send it directly to printer because we use NCR Paper (Carbonless paper) and this kind of paper is very expansive...

    I hope to have been clear with my explanations...

    Thanks in advance !

    Have a nice week-end everybody !
    DubweiserTM

    If your question has been answered, you can mark a thread as resolved...

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Is the user click on print button (CR) ?

    Is it possible to know if the user click on print button in Crystal Reports preview window ???
    By preview window do you mean the CRViewer Control? If yes, then clicking the print button in this window will raise the PrintButtonClicked event.

  3. #3

    Thread Starter
    Hyperactive Member DubweiserTM's Avatar
    Join Date
    Dec 2005
    Location
    St-Ferdinand, Québec
    Posts
    427

    Re: Is the user click on print button (CR) ?

    Quote Originally Posted by brucevde
    By preview window do you mean the CRViewer Control ?
    No ! It's the preview window when I call my report (CRpt1.PrintReport)
    DubweiserTM

    If your question has been answered, you can mark a thread as resolved...

  4. #4
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Is the user click on print button (CR) ?

    What version of Crystal are you using and what type of control is CRpt1?

  5. #5

    Thread Starter
    Hyperactive Member DubweiserTM's Avatar
    Join Date
    Dec 2005
    Location
    St-Ferdinand, Québec
    Posts
    427

    Re: Is the user click on print button (CR) ?

    Quote Originally Posted by brucevde
    What version of Crystal are you using and what type of control is CRpt1?
    Version 8.5 and it's Crystal Report control...
    DubweiserTM

    If your question has been answered, you can mark a thread as resolved...

  6. #6
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Is the user click on print button (CR) ?

    Since version 8.0, the Crystal Report OCX is included for backward compatibility. I would recommend that you use the Crystal Report Viewer Control and the Crystal Report ActiveX Runtime Library.

    As far as I know, but it has been a long time since I used the OCX, the OCX does not fire any events. The CR Viewer however has lots of events, like the PrintButtonClicked event.

  7. #7

    Thread Starter
    Hyperactive Member DubweiserTM's Avatar
    Join Date
    Dec 2005
    Location
    St-Ferdinand, Québec
    Posts
    427

    Re: Is the user click on print button (CR) ?

    Quote Originally Posted by brucevde
    ...I would recommend that you use the Crystal Report Viewer Control and the Crystal Report ActiveX Runtime Library...
    Thanks for your help ! Now I will learn "How to use Crystal Report Viewer"...
    DubweiserTM

    If your question has been answered, you can mark a thread as resolved...

  8. #8
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: [RESOLVED] Is the user click on print button (CR) ?

    I have lots of experience with version 8.5, so if you need any help...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width