CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2004
    Posts
    2

    Save printer options

    Hello,

    I've a little problem with Visual Basic 6.0 and Crystal Report.

    I must print different reports (from different files) with the same printer with the same options.

    Unfortunately, the printer options gets reset when I change report. How can I save theses settings, or at least, tell the crystal engine not to reset them ? (It seams that the settings are stored as a part of the rpt file).

    Thank you

    Lluud

  2. #2
    Join Date
    Jul 2003
    Location
    Florida
    Posts
    651
    Not sure which settings you're referring to, but you should be able to declare a few variables and set them to the Printer options before you call you first report, then set the Printer options to the saved variables before you call your second report...
    I'd rather be wakeboarding...

  3. #3
    Join Date
    Apr 2004
    Posts
    2
    I did this, but I can't save the printer's driver specific options.

    I've resolved my problem by saving the report to the disk using saveas() and then print it with the Crystal Printing Engine API. I use windows' API to retrieve a DEVMODE structure that I can pass to the Printing Engine.

    Thank you for you answer.

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

Featured