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

Print To File - Text File - wrong newsgroup

edited June 2005 in General
I accidentally posted an issue with the subject "Print To File - Text File"
to digital-metaphors.public.reportbuilder.tech-tips instead of
digital-metaphors.public.reportbuilder.general. Not surprisingly, I haven't
received a response. Can someone help me straighten this out?

Comments

  • edited June 2005
    Hi Tyler,

    I do not see your original post on our server. It may have been deleted.
    Please repost the question here in the General newsgroup.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Thanks Nico. Here is my original question:

    I'm having a problem printing to a text file. On the Print dialog, I check
    "Print to File", for "Type:" I specify "Text File" and for "Where:" I put
    "c:\test.txt". After clicking "OK", I see another dialog that says
    "Printing page xx of yy for report Report on the c:\test.txt". After this
    screen disappears, I inspect the new text file and it is always empty.
    Other export formats provided by the TPsRBExportMasterControl class (like
    "Excel Document", "HTML Document", "Adobe Acrobat Document", etc.) are
    working. The "Report Emulation Text File" is also working. Why might this
    file always be empty? Additionally, how could I prevent "Text File" from
    showing up in the list?


  • edited June 2005
    Hi Tyler,

    In order to successfully export text objects to a text file, you will need
    to set the Save property of each text object to True. This will let the
    text device know to export that specific text object. You can also use the
    Print to File dialog by selecting File | Print To File Setup from the
    designer menu.

    If you would like to remove the Text File option from the list, you can
    unregister the device before calling Report.Print like so...

    uses
    ppDevice,
    ppFilDev;

    ---

    ppUnRegisterDevice(TppTextFileDevice);
    ppReport1.Print;

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited June 2005
    Worked! Thanks.

This discussion has been closed.