AR6 Eval: Problem with RTF formating.
ActiveReports for .NET Support
AR6 Eval: Problem with RTF formating.
12-10-2009, 1:39 PM
I've just tried my first test project and hit a snag. I'd like to use the RTF fields to generate a PDF report from some web content, and populate it manually however the report is not formating correctly. The RTF seems to be misbehaving. See attached output. The code is nothing special (see below) if someone could fill me in, it would go a long way to complete a sale...
Regards,
Rob Fleming
VB CODE:
Imports DataDynamics.ActiveReports
Imports DataDynamics.ActiveReports.Document
Public Class arPdfTest
Private Rw As Integer = 1
Private Sub arPdfTest_FetchData(ByVal sender As Object, ByVal eArgs As DataDynamics.ActiveReports.ActiveReport.FetchEventArgs) Handles Me.FetchData
RichTextBox1.Html = "HTML Row:" + Rw.ToString
TextBox1.Text = "Text Row:" + Rw.ToString
Rw += 1
If Rw > 10 Then
eArgs.EOF = True
Else
eArgs.EOF = False
End If
End Sub
End Class
Re: AR6 Eval: Problem with RTF formating.
12-11-2009, 2:59 AM
Hello,
Use the Format event of the section containing the TextBox and the RichText box to assign them the values. Please see the attached sample application showing the expected behavior.
You may also take a look at the
Custom PdfExport walkthrough
showing how to export report to PDF in a website.
Feel free to reply for any further assistance.
Regards,
Aashish
Re: AR6 Eval: Problem with RTF formating.
12-11-2009, 8:30 AM
Thanks for the quick reply. I stumbled onto this eventually but want to understand the odd behavior when seting the values in the FetchData. Should I avoid setting any fields in that event? Or are there times I should? Thoughts?
Re: AR6 Eval: Problem with RTF formating.
12-14-2009, 4:27 AM
Robert,
You may like to go through this link which discusses three important ActiveReports deign rules:
http://www.datadynamics.com/forums/78647/ShowPost.aspx
Let me know if you require further clarifications.
Amit Pal
GrapeCity- DataDynamics