Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 2 of 2 total |
saving & reteriving formated text, how? |
Mon, Jan 25 2010 4:15 PM | Permanent Link |
eeman khan | how can i post formated text into table, i want to save the a letter which is formated with diffrenet fonts and styles, borders etc into table, next time
when some one try to open the letter from my application, it is opened as it is saved. anyone regards eeman khan |
Mon, Jan 25 2010 9:34 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Eeman,
<< how can i post formated text into table, i want to save the a letter which is formated with diffrenet fonts and styles, borders etc into table, next time when some one try to open the letter from my application, it is opened as it is saved. >> Create a table with a Memo field in it called Letter, and then use this code: with MyDBISAMTable do begin Append; TMemoField(FieldByName('Letter')).LoadFromFile('c:\myletters\myletter.doc'); Post; end; To load the letter again, use this: with MyDBISAMTable do begin TMemoField(FieldByName('Letter')).SaveToFile('c:\myletters\myletter.doc'); { Launch MS Word, etc. here and open the letter using ShellExecute, etc. } end; -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Thursday, April 18, 2024 at 10:42 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |