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

Textfile issues

edited March 2005 in General
I am using Reportbuilder 9 on Delphi 7...
I have a report that is just 5 dbtext fields: firstname, last name,
address...
If I set the devicetype to Screen, the data shows up just fine when I run
the report
But if I change it to TextFile, when I save it, there is no data in the
report...
Is there a setting I am missing?
I have AllowPrintToFile set to True...
And am setting the textfilename...


--Brandie

--
******************************************
Brandie VanNort
Computer Services Administrator
Ebby Halliday, Realtors
Dallas, Texas
http://www.ebbyhalliday.com
Phil 4:13 "I can do all things through
Christ who strengthens me"
******************************************

Comments

  • edited March 2005
    Hi Brandie,

    If you are saving to a text file, you need to set the Save property of each
    text component you would like to show up to True. You can also control
    these settings using the Print To File Setup dialog available by selecting
    that option from the File menu in the designer.

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    I saw that on another posting, and I tried that, but it didn't work...same
    problem...
    Any other ideas?

    --Brandie

    --
    ******************************************
    Brandie VanNort
    Computer Services Administrator
    Ebby Halliday, Realtors
    Dallas, Texas
    http://www.ebbyhalliday.com
    Phil 4:13 "I can do all things through
    Christ who strengthens me"
    ******************************************

  • edited March 2005
    Hi Brandie,

    Are you exporting to a report emulation text file, or a delimited text file?

    Are these DBText objects in a subreport? If so, this is the reason they are
    not printing. Take a look at the following example on how to print a text
    file with subreports.

    http://www.digital-metaphors.com/tips/PrintTextFileWithSubreport.zip

    --
    Regards,

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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited March 2005
    Not sure what you mean about to a report emulation text file or a delimited
    text file...
    I have DeviceType set to TextFile
    And in the settings below have TextFileType set to ftComma...

    The report is simple, no subreport, it just a header, and a detail
    band...all the dbtext fields are in the detail band...



    --
    ******************************************
    Brandie VanNort
    Computer Services Administrator
    Ebby Halliday, Realtors
    Dallas, Texas
    http://www.ebbyhalliday.com
    Phil 4:13 "I can do all things through
    Christ who strengthens me"
    ******************************************

  • edited March 2005
    Try running demos 101 - 106 located in the \RBuilder\Demos\1. Reports\...
    directory. These demos export different reports to a text file. If these
    work correctly, please send a sample of your application in .zip format to
    support@digital-metaphors.com 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 March 2005
    I was having the same issue... changed to deviceType 'printerFile' and it
    is writing to the file...

    Problem I am having is that I need the fields to WORDWRAP... using dbMemo
    for fields... all is well when I print or when I view... but when I
    write/print it to the text file the last 2-4 characters of the line are
    lost... any assistance greatly appreciated.

    thanx
    b
This discussion has been closed.