Saving TRichview into db with SQL

General TRichView support forum. Please post your questions here
Post Reply
Spaznuski
Posts: 1
Joined: Mon May 21, 2007 7:51 pm

Saving TRichview into db with SQL

Post by Spaznuski »

hey I am new to saving files to DB,
Using Postgresql with postgreDAC, i have table setup with field bytea (blob).
but want to insert the contents of TRichview into the db with an INSERT SQL.
could this be done?


also side question
is it possible to create controls when needed if placed in a TRichview. eg. I have one document and insert a text box and a checkbox, save it. in another app with a TRichview if i open the saved file, could these text boxes and check boxes be created automatically and added to the document/form.

Regards
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

Can you give me a sample of SQL statement inserting multiline text in table? Sorry, my knowledge of SQL is very basic.

Yes. Just call RegisterClasses([TEdit, TCheckbox]) before loading.
Post Reply