Home General

Citrix and PDF

edited April 2010 in General
I am having a problem printing to PDF on several Citrix installations. They
have default printers installed but they are getting the message "Canvas
does not allow drawing". They can PRINT just fine. Only the PDF print gives
and error.


TppReport(ppViewer1.Report).AllowPrintToFile := True;
TppReport(ppViewer1.Report).ShowPrintDialog := False;
TppReport(ppViewer1.Report).DeviceType := dtPDF;
TppReport(ppViewer1.Report).PDFSettings.Author :=
dmCvHeaderInfo.ReportAuthor;
TppReport(ppViewer1.Report).PDFSettings.Title :=
dmCvHeaderInfo.ReportTitle;
TppReport(ppViewer1.Report).TextFileName := TempFileName; {We even
changed this to C:\Windows\Temp to make sure since ALL users have rights to
that}
TppReport(ppViewer1.Report).Print;

Thanks,
Mark Greenhaw
OneDomain., Inc.

Comments

  • edited April 2010
    >I am having a problem printing to PDF on several Citrix installations.

    fwiw, I have a fairly large Citrix install and it works fine there. I am not
    sure what you are seeing.

    Ed Dressel
  • edited April 2010
    I am fairly certain it is not with Report Builder since it works fine at
    most sites and doesn't work at some others. On this one, I was hoping
    someone else might have encountered this before and knew what settings in
    Citrix might have caused this behaviour. I don't have a Citrix site near me
    where this is happening and getting I.T. at some of the client sites to help
    troubleshoot has been ... problematic. ;-)

    Mark Greenhaw

  • edited April 2010
    >I am fairly certain it is not with Report Builder since it works fine at

    Every report I print out in Citrix is printed to a PDF in the background.

    If you don't use CodeSite yet, it wouldn't be a bad time to look at it.

    Ed Dressel
    Team DM
  • edited April 2010
    Hi Mark,

    I had this error in the past also with a client. After they made citrix
    changes this error popped up.
    They resolved it themself and it had to do with that in the new situation
    the printer drivers were 'loaded on demand' or something. They reverted to
    the old configuration and it's solved since.
    The error was shown when doing a print preview. So no printing was involved.
    It was some years ago and I am not sure what version of RB was used.
    Hope this will lead to a solution on your side.

    Kind regards,
    Jeroen R?ttink


  • edited June 2010
    We have gone back and forth with our client for months trying to resolve
    this. I am certain it is a Citrix setting but trying to get their IT to
    assist has been like pulling teeth. As is normally the case, according
    to them this is our fault. We reinstated the code to use Pragnaan as the
    PDF exporter (although DM's gives us better output) and it works.

    Is there something DM is writing to that the user needs to be certain to
    have rights to access that we may be missing? We are dependent on the
    client's IT to manage user rights and the individual we are forced to
    work with has been ... less than helpful. Any suggestions?

    Is there a "write to canvas" Citrix setting I am unaware of? I am very
    ignorant of Citrix's way of doing things.

    Sincerely,
    Mark Greenhaw
    OneDomain, Inc.



  • edited June 2010
    > We have gone back and forth with our client for months trying to resolve


    FWIW we are running on Citrix and it works fine--and all reports always get
    generated to a PDF in the background,.

    Do you have a call stack on the exception?

    Ed Dressel
    Team DM
  • edited June 2010
    Hi Mark,

    Which version of ReportBuilder and Delphi are you currently using? The PDF
    device primarily uses the printer canvas used to generate the reports to the
    screen/printer. If there is an issue accessing the printer or printer
    driver you may see an error.

    --
    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.