Problem with Tables and Heading Row (table disapear in part)
Problem with Tables and Heading Row (table disapear in part)
Hi,
I have a problem with my tables and the TScaleRichViewEdit (v6).
I use "HeadingRowCount :=1" for the tables, it's typical quotation tables with products, quantities and prices.
But the problem is my tables disapear if they are to close from the bottom of a page (and I don't see them on the next page)
If I dontt use the heading rows (HeadingRowCount := 0), there is no problem, the table is cut as expected (start on the 1st page and continue on the next).
I join my example RVF file (you can open with the ActionTestUni demo executable) :
http://we.tl/3Vwr4sKYZA
(The table problem is in red on my example)
Can you help me, or maybe already fixed in the next release ?
Again, thanks for your help
++
SylvainL
I have a problem with my tables and the TScaleRichViewEdit (v6).
I use "HeadingRowCount :=1" for the tables, it's typical quotation tables with products, quantities and prices.
But the problem is my tables disapear if they are to close from the bottom of a page (and I don't see them on the next page)
If I dontt use the heading rows (HeadingRowCount := 0), there is no problem, the table is cut as expected (start on the 1st page and continue on the next).
I join my example RVF file (you can open with the ActionTestUni demo executable) :
http://we.tl/3Vwr4sKYZA
(The table problem is in red on my example)
Can you help me, or maybe already fixed in the next release ?
Again, thanks for your help
++
SylvainL
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hi Sergey,
I have another problem now, still with HeadingRow>0 (and SRV 6.1.2).
This is the context :
Page 1 : a big table (5 cols and 10 rows) at the end of the page, with HeadingRow=1, only 2 rows on the page (the rest on page2)
Page 2 : the headingRow is here ok and the rows.
But...
When I generate metafiles (SRVE.DrawMetafile) the metafile of page 2, with the HeadingRow, is incorrect (seems to have headingrow AND the first row of the table) drawn in the metafile.
The problem is visible when you generate PDF file with the metafiles.
Am I doing something wrong ?
The code I use to make metafiles from my SRVE Pages :
Thanks for your help
Best regards,
SylvainL
I have another problem now, still with HeadingRow>0 (and SRV 6.1.2).
This is the context :
Page 1 : a big table (5 cols and 10 rows) at the end of the page, with HeadingRow=1, only 2 rows on the page (the rest on page2)
Page 2 : the headingRow is here ok and the rows.
But...
When I generate metafiles (SRVE.DrawMetafile) the metafile of page 2, with the HeadingRow, is incorrect (seems to have headingrow AND the first row of the table) drawn in the metafile.
The problem is visible when you generate PDF file with the metafiles.
Am I doing something wrong ?
The code I use to make metafiles from my SRVE Pages :
Code: Select all
function MakePageMetafileFromSRVE(SRVE: TSRichViewEdit; APageNo, AWidth, AHeight: Integer): TMetafile;
var
savTextDraw: Boolean;
begin
Result := nil;
savTextDraw := ScaleRichViewTextDrawAlwaysUseGlyphs;
ScaleRichViewTextDrawAlwaysUseGlyphs := False;
Result := TMetafile.Create;
Result.Width := aWidth;
Result.Height := aHeight;
srve.CanUpdate := False;
srve.UseDrawHyperlinksEvent := True;
srve.DrawMetafile(aPageNo, Result, False, False, False);
ScaleRichViewTextDrawAlwaysUseGlyphs := savTextDraw;
srve.CanUpdate := True;
srve.UseDrawHyperlinksEvent := False;
end;
Thanks for your help
Best regards,
SylvainL
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
I cannot reproduce this problem (it looks very strange to me, because the same procedure is used for drawing a metafile and a page in TSRichViewEdit).
Please send your document to rvf file and send to me richviewgmailcom
PS: do not change ScaleRichViewTextDrawAlwaysUseGlyphs. The default value is now false; true caused too many problems
Please send your document to rvf file and send to me richviewgmailcom
PS: do not change ScaleRichViewTextDrawAlwaysUseGlyphs. The default value is now false; true caused too many problems
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Hi guys,
I have same kind of problem, but at the end of 1st page now (last time it was the begining of 2nd page), when I generate metafile from a RVF file (2 tables separated by a pagebreak)
Here is my RVF file :
https://userscloud.com/cxjjawrf4q5e
The metafile generated looks fine (when I open with paint for example), but when I use them to generate PDF file, there is unnecessary informations at the end of the 1st page (drawing first row of page 2).
Ans still, the problem is visible when you generate PDF file with the metafiles.
Could you help me to fix that pbm ?
Thanks in advance
++
SylvainL
I have same kind of problem, but at the end of 1st page now (last time it was the begining of 2nd page), when I generate metafile from a RVF file (2 tables separated by a pagebreak)
Here is my RVF file :
https://userscloud.com/cxjjawrf4q5e
The metafile generated looks fine (when I open with paint for example), but when I use them to generate PDF file, there is unnecessary informations at the end of the 1st page (drawing first row of page 2).
Ans still, the problem is visible when you generate PDF file with the metafiles.
Could you help me to fix that pbm ?
Thanks in advance
++
SylvainL
-
- Site Admin
- Posts: 17557
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Quick fix:
Open SclRView.pas, find
change to:
Open SclRView.pas, find
Code: Select all
if PageStartTableItem[Result] >= 0 then
PageEndItemNo[Result - 1] := PageStartTableItem[Result]
else
Code: Select all
if PageStartTableItem[Result] >= 0 then begin
if PageStartTableRow[Result] = 0 then
PageEndItemNo[Result - 1] := PageStartTableItem[Result]-1
else
PageEndItemNo[Result - 1] := PageStartTableItem[Result];
end else