iSeller Commerce
iSeller POS Retail
iSeller POS F&B
iSeller POS Express
Crosslight
WebUI
ClientUI
What's New
Download Trial
Web Solution
Mobile Solution
Enterprise Solution
Custom Development
Blog
Community
Latest Development Blogs
ForumPostTopic
Browse By Tag
I add some labels in the exported group header with this code in PrepareExportExecute:report.Sections("PageHeader").Controls.Add(lblProject)When doing this all the original text and data in the report is moved downwards so there is a lot of empty space at the top of the report. Is there a way to solve this?// Staffan E.
Using this snippet to modify the PageHeader section of a PDF report, I have no spacing issue
protected void WebGrid1_PrepareExportExecute(object sender, PrepareExportExecuteEventArgs e) { ActiveReport3 report = e.ReportObject; DataDynamics.ActiveReports.Label lblProject = new DataDynamics.ActiveReports.Label(); lblProject.Text = "Report Custom Header"; lblProject.Alignment = TextAlignment.Left; report.Sections["PageHeader"].Controls.Add(lblProject); }
Hi,
I trying out the code above to add another header to a PDF output and am having some problems. I am using VB so I converted the code above to:
Protected Sub WebGrid1_PrepareExportExecute(ByVal sender A s Object, ByVal e As ISNet.WebUI.WebGrid.PrepareExportExecuteEventArgs) Handles WebGrid1.PrepareExportExecute Dim report As ActiveReport3 = e.ReportObject Dim lblProject As DataDynamics.ActiveReports.Label = New DataDynamics.ActiveReports.Label() lblProject.Text = "Report Custom Header" lblProject.Alignment = DataDynamics.ActiveReports.TextAlignment.Center report.Sections("PageHeader").Controls.Add(lblProject) End Sub
The problem I am seeing is an design time error on the e.ReportObject. The error is shown in attach file: It essence it says I need a reference to the ISNet.ActiveReports.Exporting assembly. I have it referenced in my web.config. I also added Imports DataDynamics.ActiveReports in my code behind.
What else needs to be done for VB?
or
Choose this if you're already a member of Intersoft Community Forum. You can link your OpenID account to your existing Intersoft Social ID.
Choose this if you don't have an Intersoft account yet. Your authenticated OpenID will be automatically linked to your new Intersoft account.
Enter your Wordpress Blogname