IE / Firefox -> Clipboard -> TRichView
Posted: Sat Apr 01, 2006 12:16 am
Sergey -
Thanks for your excellent component, your attentiveness to my installation issues, AND for setting up this user forum -- this will help answer many of my (our) questions without having to distract you from programming future TRichView features and versions! : ) Yea!!
My main objective with TRichView right now is to store "rich text / image" snippets in a database table (currently using Access 2000 via ADO). The majority of these "snippets" will come via copy-and-paste from web pages (Firefox usually, but IE as well sometimes). It seems a number of posts touch on this set of problems (i.e. it's not just me looking for this info), but I can't seem to find the definitiive "how to" answers I'm looking for here or in the demo project(s). (There are some fabulous demos there though! -- thanks for those!!).
I want to be able to copy a web page or part of a web page, paste it in a data-bound "rich text" control, and save that WITH the images included into that databaae field / table. I don't care what format I save the data in (RTF / HTML / text / blob --- whatever), as long as the layout is preserved fairly well, and I can export to various formats as needed (HTML, RTF, maybe Word / Doc, etc). I'm thinking that would mean my best approach w/b to store in native TRichView format, to a blob/OLE field, but I am not sure. Which is best?
What I've found in my previous experiments with this, adopting the TActions demo project as a trial run, led to inconsistent results -- i.e. sometimes pictures would come across, and sometimes they wouldn't.
Any suggestions / guidance on this w/b appreciated... but specifically:
1) What format to save to in the DB
2) What additional components s/b needed (HTML import, for example)
3) How to anticipate and accomodate the Clipboard's format
4) How to "import" and save (in the database) the pictures that may, in the HTML, just be links / path references.
5) Special caveats / property settings to watch for on the TRichView control.
Thanks for any and all help! : )
Thanks for your excellent component, your attentiveness to my installation issues, AND for setting up this user forum -- this will help answer many of my (our) questions without having to distract you from programming future TRichView features and versions! : ) Yea!!
My main objective with TRichView right now is to store "rich text / image" snippets in a database table (currently using Access 2000 via ADO). The majority of these "snippets" will come via copy-and-paste from web pages (Firefox usually, but IE as well sometimes). It seems a number of posts touch on this set of problems (i.e. it's not just me looking for this info), but I can't seem to find the definitiive "how to" answers I'm looking for here or in the demo project(s). (There are some fabulous demos there though! -- thanks for those!!).
I want to be able to copy a web page or part of a web page, paste it in a data-bound "rich text" control, and save that WITH the images included into that databaae field / table. I don't care what format I save the data in (RTF / HTML / text / blob --- whatever), as long as the layout is preserved fairly well, and I can export to various formats as needed (HTML, RTF, maybe Word / Doc, etc). I'm thinking that would mean my best approach w/b to store in native TRichView format, to a blob/OLE field, but I am not sure. Which is best?
What I've found in my previous experiments with this, adopting the TActions demo project as a trial run, led to inconsistent results -- i.e. sometimes pictures would come across, and sometimes they wouldn't.
Any suggestions / guidance on this w/b appreciated... but specifically:
1) What format to save to in the DB
2) What additional components s/b needed (HTML import, for example)
3) How to anticipate and accomodate the Clipboard's format
4) How to "import" and save (in the database) the pictures that may, in the HTML, just be links / path references.
5) Special caveats / property settings to watch for on the TRichView control.
Thanks for any and all help! : )