trichview.support
| Re: AssignSource fail | 
| Author | Message | 
| Sergey Tkachenko | Posted: 04/21/2005 21:59:35 Sorry, I do not know what backcoloritems is. Are you sure that they contain strings representing integers in range 0...rvs.ParaStyles.Count-1 ? (the range is not so important because if the index goes out of range this code assigns properties of rvs.ParaStyles.InvalidItem; but if they are not integers, StrToInt fails) > the code near from it: > > //here i paint back the white background > FOR i := 0 TO backcoloritems.Count - 1 DO frm_print.rvs.ParaStyles[StrToInt(backcoloritems.Strings[i])].Background.Col or > := clwhite; > > //then i wish to to generate the preview > > frm_preview.RVPrint1.AssignSource(rv); > > frm_preview.RVPrint1.FormatPages(rvdoAll); > > | 
Powered by ABC Amber Outlook Express Converter