Save fields of printed reports in a Text file
Dear Sir,
I have RB 10.08 pro. and Delphi 7 in windows XP and model of printer is
MGI METEOR 40 PRO.
I'd like save all "first_name" and "last_name" and "employee_ number"
and "title" of Reports which user printed saved a Text file for log of
reports.
If user prints again reports then save those fields in end of it Text
file.
Regards
Ali Abbasi
--- posted by geoForum on http://delphi.newswhat.com
I have RB 10.08 pro. and Delphi 7 in windows XP and model of printer is
MGI METEOR 40 PRO.
I'd like save all "first_name" and "last_name" and "employee_ number"
and "title" of Reports which user printed saved a Text file for log of
reports.
If user prints again reports then save those fields in end of it Text
file.
Regards
Ali Abbasi
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
Please configure your news reader to post with your real name rather than
"ali110".
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I guess the rules of posting in the newsgroups does not only apply to Ali
but all? I have seen several times you are asking the same for Ali, when
others freely posts and get replies without beeing told to post their real
names?
Regards,
H?seyin Aliz.
Sorry, We change my user name to my real full name Ali Abbasi.
Please help me.
Best regards,
Ali Abbasi
than
is
--- posted by geoForum on http://delphi.newswhat.com
Take a look at the following example of printing to the printer and
exporting to text at the same time.
http://www.digital-metaphors.com/tips/PrintToPrinterAndTextFile
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
I tested and below link has problem! and please send me to my email:
abbasi@sepehranformatic.com
http://www.digital-metaphors.com/tips/PrintToPrinterAndTextFile
Regards,
Ali Abbasi
number"
of
Text
--- posted by geoForum on http://delphi.newswhat.com
http://www.digital-metaphors.com/tips/PrintToPrinterAndTextFile.zip
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you very much and I tested it.
If we repeat print report then it sample erase previous text file and
Create new text file.I'd like all prints add to previous text file.
May user change database and insert new records and if do print add to
it text file.
Regars,
Ali Abbasi
printer
log
--- posted by geoForum on http://delphi.newswhat.com
The TextFile Device is not designed to append to other text files. You will
either need to create a TextFile Device descendent that does this or
manually open your own file stream and write each text value yourself. The
former would most likely be the easiest as it would be almost identical to
the current text device with changes to the file stream options.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com