﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebGrid Enterprise - Adding info in exported group header moves everything down</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Adding-info-in-exported-group-header-moves-everything-down/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Adding info in exported group header moves everything down</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Adding-info-in-exported-group-header-moves-everything-down/</link><pubDate>Tue, 03 Nov 2009 13:31:11 GMT</pubDate><dc:creator>John.Bonin@dot.gov</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;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:&lt;/p&gt;&lt;pre&gt;    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&lt;/pre&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;What else needs to be done for VB?&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</description></item><item><title>Adding info in exported group header moves everything down</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Adding-info-in-exported-group-header-moves-everything-down/</link><pubDate>Mon, 02 Nov 2009 22:54:51 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Using this snippet to modify the PageHeader section of a PDF report, I have no spacing issue&lt;/p&gt;&lt;p /&gt;&lt;pre&gt;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);
}&lt;/pre&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p /&gt;</description></item><item><title>Adding info in exported group header moves everything down</title><link>http://www.intersoftsolutions.com/Community/WebGrid/Adding-info-in-exported-group-header-moves-everything-down/</link><pubDate>Wed, 14 Oct 2009 13:32:36 GMT</pubDate><dc:creator>staffan.eriksson@semita.se</dc:creator><description>&lt;p&gt;I add some labels in the exported group header with this code in PrepareExportExecute:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size: 13px"&gt;report.Sections(&lt;/span&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;&lt;span style="color: #a31515; font-size: 13px"&gt;"PageHeader"&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: 13px"&gt;).Controls.Add(lblProject)&lt;br /&gt;&lt;br /&gt;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?&lt;br /&gt;&lt;br /&gt;// Staffan E.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>