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

Text file extensions

edited September 2012 in General
just installed build 14-06 for XE2 to overcome bug where .txt extension
could not be changed
while this can now be done manually but the default file names of
myDocks\blah.csv are still being replaced with myDocks\blah.txt

If I do
rpPackedFCo.PrintDialog.DeviceType := 'TextFile';
rpPackedFCo.PrintDialog.DefaultFileExt := 'csv';
rpPackedFCo.PrintDialog.FileFilter := '*.csv';
rpPackedFCo.PrintDialog.TextFileName := MyDocsLocation +
Strip(cbMarketer.Text) + 'Packed.csv';

I Can overcome this but then but the user must then uncheck the print to
file to print a paper copy
Is there any way to overcome this ??
if not how about a DeviceType := 'CSVFile' in the future

regards
ian

Comments

  • edited September 2012
    Ok Think I May have overcome this by using PrintDialog.DefaultFileDeviceType
    := 'TextFile';

    regards Ian


This discussion has been closed.