Results 1 to 6 of 6

Thread: [RESOLVED]Printing Report Without View Report

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Resolved [RESOLVED]Printing Report Without View Report

    Hi:

    With this code I sort the report and then I can print with the option in CR:

    Code:
    CRViewer1.ReportSource = Rpt
    CRViewer1.ViewReport
    But is I want to print the report without see it?

    Anyone know the way to do this?

    Thanks
    Last edited by sacramento; Mar 29th, 2008 at 01:53 PM.

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

    Re: Printing Report Without View Report

    Use the PrintOut method of the Report object.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Printing Report Without View Report

    ok I will try...

    thanks

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Printing Report Without View Report

    Hi:

    I had try the printout method and work,but CR continues to display a prompt for the printer...do you know the way to clean the prompt of the printer given By CR,and print without any prompt?

    Thanks

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

    Re: Printing Report Without View Report

    I don't have Crystal on this pc and so cannot verify the following but if I remember correctly

    the first argument of the PrintOut method is called PromptUser. Pass in False and the user won't be prompted for a printer.

    The report object has a property called DisplayProgress. Set it to false and you won't see the Printing Page X of X dialog.

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2004
    Posts
    1,414

    Re: Printing Report Without View Report

    Yes is the first argument...Now work well

    Code:
    Rpt.PrintOut False
    Thanks

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