trichview.com

trichview.support




Using name for BackgroundImage / Table / Cells


Return to index


Author

Message

Mirko G�rgen

Posted: 01/21/2005 22:52:26


Hi


For inserting Pictures to RVE I use s.th. like


String dbname = "picname"

RichViewEdit1->InsertPicture(dbname,gr,rvvaBaseline);


which works quite well


I now want to use s.th. simular for inserting BackgroundImage to Table Cell.


The Code so far is


TGraphic* gr = NULL;

gr = new TJPEGImage;

TPicture *pic = new TPicture;

if(gr) {

pic->LoadFromFile("C:\\editor\\img\\pic.jpg");

gr->Assign(pic->Graphic);

table->Cells[r][c]->BackgroundImage = gr;

table->Cells[r][c]->BackgroundStyle  = rvbsTiled;


..


The Code works, image is on the right place, but no possibilty to set a name.



I need this because I use RVXML to produce XML and html, wich also works

quite perfect so far(After fixing some poor XML output ;-)


By the way, could it be that RXML doesn�t notice BackgroundImage of Cells?

But I guess this could be not to diffcult to fix this sympton.


So any idea for my problem?


regards

Mirko





Powered by ABC Amber Outlook Express Converter