Page 1 of 1

Getting Name of HotPicture!

Posted: Mon Sep 05, 2005 2:44 pm
by Tim
Hello!

I add HotPicture to the document like this:

Code: Select all

RVE.AddHotPictureTag('Edit', EditBMP, -1, rvvaBaseline, DM.SearchQuery.FindField('StoriesID').AsInteger);
At OnJump event using follwing line of code I get Tag number of hot picture:

Code: Select all

var
  ItemNo: Integer;
  RVData: TCustomRVFormattedData;
begin
  RVE.GetJumpPointLocation(id, RVData, ItemNo);

  if RVData.GetItemStyle(ItemNo) = rvsHotPicture then
    ShowMessage('Picture ' + IntToStr(RVData.GetItemTag(ItemNo)));
end;
Now I want to get name constant of hot picture. because I have two kind of hot picture: Edit, Note.

I want to understand does user clicked at Edit HotPicture or Note HotPicture.

Is there a way to get name constant of hot picture? :roll:

Regards

Posted: Mon Sep 05, 2005 2:51 pm
by Sergey Tkachenko
RVData.GetItemTextA(ItemNo)

Simple anothor question!

Posted: Wed Sep 07, 2005 6:19 am
by Tim
Thanks for your answer. :D

I have anothor simple question: Why TransparentBackground of RVPrint dosen't work. hwo it is possible to print a document using RVPrint withour background image. I also try FormatPages([]) without any paramateres but it dosen't work, too. :idea:

Regards

Posted: Wed Sep 07, 2005 9:14 am
by Sergey Tkachenko
This property affects only the background color.
To remove a background bitmap from printing, call
RVPrint.rv.BackgroundBitmap := nil;
after calling RVPrint.AssignSource.