trichview.support
Re: why bordered with red line ? |
Author |
Message |
Alex |
Posted: 03/21/2005 1:19:12 "Sergey Tkachenko" <[email protected]> wrote: >Red-bordered paragraphs are paragraphs with invalid style indices (ParaNo >= >RVStyle.ParaStyles.Count) >(see InvalidItem property) >For some reasons, when you load data from stream, paragraph styles are not >correctly loaded (or merged with the existing paragraph styles). >How do you load data? > > by using below code in preview routine CreateTable(1,1,True); //Table Creating in special Procedure TableTopHeader.Cells[0,0].Clear; Case TopPageNumbers of 1: TableTopHeader.Cells[0,0].AddFmt('-%d-', [PrevPageNo],0,0); 2: TableTopHeader.Cells[0,0].AddFmt('-%d-', [PrevPageNo],0,1); 3: TableTopHeader.Cells[0,0].AddFmt('-%d-', [PrevPageNo],0,2); end; // where 2 is right alignmentthat I've Added HeaderRVH.RichView.AddItem('Tabletop',TableTopHeader); CreateTable(1,1,True); StreamTopHeader.Position:=0; TableTopHeader.Cells[0,0].Clear; TableTopHeader.Cells[0,0].LoadRVFFromStream(StreamTopHeader, Color, nil, nil); HeaderRVH.RichView.AddItem('TableTop2',TableTopHeader); |
Powered by ABC Amber Outlook Express Converter