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

pdf - canvas does not allow drawing

edited June 2005 in General
I am trying to print to a pdf without displaying anything to the canvas
(because I am inside an intraweb application.)

I keep getting the message 'canvas does not allow drawing'.

Is there a property that I need to turn off?

I already am setting the following

Process_Report.ShowPrintDialog := False;
Process_Report.TextFileName := filedir;
Process_Report.DeviceType := 'PDF';
Process_Report.ModalCancelDialog := false;
Process_Report.ModalPreview := false;
Process_Report.ShowCancelDialog := false;

Thanks

Joel

Comments

  • edited June 2005
    Hi Joel,

    Which version of ReportBuilder are you using? Are you tring to export any
    images to PDF that are not bitmaps?

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Sorry. It is version 9.0.2.

    I am not using any images. (I only receive the error when I try to run it
    under IIS web server.)

    Thanks

    Joel



  • edited June 2005
    Hi Joel,

    If possible, please set your library path to point to \RBuilder\Source\ and
    set your debugger to stop on exceptions. Then try to trace into the
    RBuilder source when the error occures. Let me know what you find.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Hmm. I am not setup to debug dll's under IIS. The code works fine if I am
    debugging it under delphi, but the minute I compiled the code to run as a
    dll under IIS then I start getting the error code.

    I am not sure how to proceed?

    Joel


  • edited June 2005
    Hi Joel,

    Although I have not tested the PDF export with intraweb, we do have many
    customers using it. I was able to test an ISAPI web app with our report
    server using IIS and this seemed to work correctly. This may have something
    to do with the fact that the user is different in IIS and it does not have
    access to the proper printer drivers, or other files to successfully
    generate the report.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Ok. That sounds logical so I will check the user running IIS.

This discussion has been closed.