Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Access violation when printing under Win2K Terminal Server

edited April 2005 in General
Hi,

I'm connecting to a remote server using Remote Desktop. The server runs
under Win2K Terminal Server. When I preview the report, everything runs
fine, but when I click on Print button, I get an Access Violation. I have RB
9.02 build 2.

David Caouette

Comments

  • edited April 2005
    Hi David,

    When using a terminal service, the most common cause of errors it that you
    do not have access rights to the printer driver needed to generate the
    report. Be sure you have access to the proper driver files and re-print.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Nico,

    I discovered that Win2K is not in cause of my Access Violation. I just can't
    print from the preview screen. If i print directly to printer, there are no
    Access Violations, but if I preview my report, and then print it, Access
    Violation occurs... my report has CachePages to TRUE. I'll check if there
    are any other properties that can point out...

    David Caouette
  • edited April 2005
    Hi David,

    If you point your library path to \RBuilder\Source\... are you able to trace
    into the RB code after the exception occurs? If so, where is the error
    occuring?

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Nico,

    I'm actually tracing it. I'll post a message as soon as possible.

    David


  • edited April 2005
    Hi Nico,

    the line causing the error is in TppReport.PrintToDevices at line 1895:

    SendDesignMessage(RM_REPORTPRINTING, ppWCustomMsg, TObject(0));

    This causes an Access Violation.

    David Caouette

  • edited April 2005
    I was wrong on one detail : CachePages was set to FALSE.


    "David Caouette" a ?crit dans le message de
  • edited April 2005
    Hi David,

    Thanks for the info. Please send an example of this to me in .zip format
    and I'll take a look at it for you.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited April 2005
    Hi Nico,

    stop searching. I discovered that setting TppReport.ModalPreview to FALSE
    was causing my problem. I set it to TRUE and it fixed everything. Thank you
    for your support!

    David Caouette

  • edited April 2005
    Hi David,

    Excellent! Glad you found a solution.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.