ok here's what i'm trying to do. since the terms and condition could change i want to place it in a file and read it into a specific text object in the report. it works fine except that each term and/or condition is numbered and therefore should be placed on a new line. I cannot get it to place each line on a new line after the previous term and/or condition. i've tried everything i can think hopefully someone has a better idea.
VB Code:
With Me.CrystalReportSource1.ReportDocument.ReportDefinition.Sections("Section3") Dim fTermConditions As New IO.StreamReader("C:\Inetpub\wwwroot\QuoteManager\Reports\TermsConditions.txt") Dim TermsConditions As New StringBuilder Do While fTermConditions.Peek > -1 TermsConditions.AppendLine(fTermConditions.ReadLine) Loop fTermConditions.Close() fTermConditions.Dispose() fTermConditions = Nothing CType(.ReportObjects("txtoTermsConditions"), _ CrystalDecisions.CrystalReports.Engine.TextObject).Text = TermsConditions.ToString End With



Reply With Quote