Search found 7 matches

by hacqing
Mon May 12, 2014 10:43 am
Forum: Support
Topic: TRVReportHelper::PagesCount Problem
Replies: 2
Views: 11124

I sent an email with the details.

Thank you very much!
by hacqing
Mon May 12, 2014 1:57 am
Forum: Support
Topic: TRVReportHelper::PagesCount Problem
Replies: 2
Views: 11124

TRVReportHelper::PagesCount Problem

hi, i use follow code to get page counts:

int imageWidth = 0, imageHeight = 0;
imageWidth = editContext->param.pageWidth;
imageHeight = editContext->param.pageHeight;
if ((imageWidth == 0)) {
return ;
}

rvh->RichView->LeftMargin = 0;
rvh->RichView->TopMargin = 0;
rvh->RichView ...
by hacqing
Sat May 03, 2014 2:48 am
Forum: Support
Topic: RichViewEdit problem
Replies: 8
Views: 21749

Code: Select all

this->rvh_->GetPageNo(this->rvh_->RichView->RVData,
  this->rve->CurItemNo, this->rve->OffsetInCurItem); 
is right.

thank you very much! :lol: :D
by hacqing
Thu May 01, 2014 3:16 pm
Forum: Support
Topic: RichViewEdit problem
Replies: 8
Views: 21749

GetPageNo() is right. can you give me about TRVReportHelper.GetPageNo's example?
my code: the GetPageNo() method return -1.

int nil = 0;
int imageWidth = 52;
int imageHeight = 29;
bool ret = false;

this->rvh_->RichView->Style = this->rvhStyle_;
this->rvhStyle_->FontQuality = TFontQuality ...
by hacqing
Wed Apr 30, 2014 10:22 am
Forum: Support
Topic: RichViewEdit problem
Replies: 8
Views: 21749

i use the following method to solve my problem:

this->rvh_->RichView->WordWrap = false;
this->rvh_->Init(this->Canvas, smallWidth);
while (rvh_->FormatNextPage(Height));

int realWidth = 0, realHeight = 0;
realWidth = this->rvh_->RichView->RVData->DocumentWidth + this->rvh_->RichView ...
by hacqing
Wed Apr 30, 2014 1:53 am
Forum: Support
Topic: RichViewEdit problem
Replies: 8
Views: 21749

i want draw all item in single line, my method is as follows:
a. get all item's size in rve.
b. calc all item's max height: maxHeight
c. sum all item's width: sumWidth
d. set rvhelper's pages size

this->rvh_->Init(this->Canvas, sumWidth);
this->rvh_->DrawPage(1, bmp->Canvas, true, maxHeight ...
by hacqing
Tue Apr 29, 2014 10:50 am
Forum: Support
Topic: RichViewEdit problem
Replies: 8
Views: 21749

RichViewEdit problem

1. convert TRVMarkerItemInfo to TRVTextItemInfo
i use the RichViewEdit controller in my application¡£
i use ctrl + c in word(*.docx 2007) file, ctrl + v to rve, rve can accept the TRVMarkerItemInfo item£¬
i use the following code convert TRVMarkerItemInfo to TRVTextItemInfo£¬but it result ...