ActiveReports for .NET Support

Started by robert.fleming@rbc.com at 12-10-2009 1:39 PM. Topic has 3 replies.

Print Search Rate
Sort Posts:    
   12-10-2009, 1:39 PM
robert.fleming@rbc.com is not online. Last active: 11/1/2011 9:43:47 PM robert.fleming@rbc.com

Not Ranked
Joined on 08-28-2004
Posts 8
AR6 Eval: Problem with RTF formating.

Attachment: 1st.pdf
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


   Report 
   12-11-2009, 2:59 AM
AashishB is not online. Last active: 12/24/2010 3:51:14 PM AashishB

Top 25 Posts
Joined on 12-11-2008
Posts 818
Re: AR6 Eval: Problem with RTF formating.

Attachment: PdfExport.zip
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

   Report 
   12-11-2009, 8:30 AM
robert.fleming@rbc.com is not online. Last active: 11/1/2011 9:43:47 PM robert.fleming@rbc.com

Not Ranked
Joined on 08-28-2004
Posts 8
Re: AR6 Eval: Problem with RTF formating.
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?
   Report 
   12-14-2009, 4:27 AM
Amit Pal is not online. Last active: 2/7/2012 10:11:10 PM Amit Pal

Top 25 Posts
Joined on 12-11-2008
Posts 855

DDStaff
Re: AR6 Eval: Problem with RTF formating.
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
   Report 
GrapeCity » Product Support » ActiveReports f... » AR6 Eval: Problem with RTF formating.

Privacy Policy | Copyright © 1997-2012 — GrapeCity, inc.
All trademarks mentioned are the property of their respective owners.