addpicture, with filename
Posted: Fri Oct 14, 2005 2:35 pm
hi Sergey,
I'm still struggling with conversion of programs build on old versions of RV to the new(er) version.
I want to ADD a picture in a RVE and assign a filename (used in html-export) to it.
I use AddPictureEx(Name, ....
now I suppossed that Name is the filename,
the help file says nothing about this parameter,
until you look at "Building RichView Document",
where is stated "name of picture; this string is not used by RichView itself"
So I use method 1
but sometimes this gives an string index out of bounds,
so therefor I use method 2
What code is correct ?
thanks,
I'm still struggling with conversion of programs build on old versions of RV to the new(er) version.
I want to ADD a picture in a RVE and assign a filename (used in html-export) to it.
I use AddPictureEx(Name, ....
now I suppossed that Name is the filename,
the help file says nothing about this parameter,
until you look at "Building RichView Document",
where is stated "name of picture; this string is not used by RichView itself"
So I use method 1
Code: Select all
RVE.AddPictureEx(line,gr,-1,rvvaBaseLine);
RVE.SetCurrentItemExtraStrProperty(rvespImageFileName,line,false);
so therefor I use method 2
Code: Select all
RVE.AddPictureEx(line,gr,-1,rvvaBaseLine);
RVE.Format;
RVE.SetItemExtraStrProperty(RVEx.ItemCount-1,rvespImageFileName,line);
thanks,