ActiveReports for .NET 3.0 Support

Started by Thilakar at 07-07-2009 8:30 AM. Topic has 13 replies.

Print Search Rate
Sort Posts:    
   07-07-2009, 8:30 AM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Page header/footer too large

Attachment: Active Reports Header Footer Error.doc
Hi,

We were using Active reports 1.1 and the application was working fine.

Recently we installed active reports 3.0.  Since then we are facing one issue.

When we try to run the application, we are getting the following error :

DataDynamics.ActiveReports.ReportException was caught
  Message="Page header/footer too large. Increase paper size or reduce header/footer height"
  Source="ActiveReports3"
  StackTrace:
       at #mb.#vqb.#DEb(Boolean bAllowGrowth)
       at #mb.#vqb.#vEb()
       at #mb.#vqb.#qEb(Page newPage, Single left, Single top, Single right, Single bottom, UInt32 flags, UInt32& status)
       at DataDynamics.ActiveReports.ActiveReport3.#4yb()
       at DataDynamics.ActiveReports.ActiveReport3.Run(Boolean syncDocument)
       at DataDynamics.ActiveReports.ActiveReport3.Run()
       at PvtDisclosurePrint.PvtDisclosurePrint.Main() in C:\1 LoanOnBoarding\Servicing\LoanBoarding\PvtDisclosurePrint\PvtDisclosurePrint\PvtDisclosurePrint.cs:line 381
  InnerException:

I have attached a word document with screenshot and the code where I am getting the error.

Please help.

   Report 
   07-07-2009, 2:32 PM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

ActiveReports for .NET works like it will attempt to query the default printer on the system whenever it runs a report. It does this to verify supported paper sizes, margin sizes, etc. This means that the default printer will need to support the paper size and margin sizes defined for your report.

The error which you have stated generally occurs when active reports uses default paper size of default printer installed on your system and summary height of page header and page footer more than then paper height.

So I would suggest you to do following things:
a) Check that your application has permission to access the default printer.

b) You can also directly specify the default printer by setting its name:

Dim rpt as New MyReport()
rpt.Document.Printer.PrinterName = "my printer name"
rpt.Run()

If it doesn’t work then

c)  Use virtual printer in ReportStart event that helps to use customize paper size and will not apply the settings of default printer.
Me.Document.Printer.PrinterName = ""

You may want to check this link for more information on the “PrinterName” property

Regards,
Sankalp
Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-09-2009, 8:11 AM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large
Hi,

Thanks a lot for your quick response and we appreciate that.

We tried these options.  But those doesn't work for us.  Is there any other option(s) available to fix this issue? Kindly help us.

   Report 
   07-09-2009, 9:56 AM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

Could you please let us know the build of Active Reports for .NET 3.0 which is installed on your machine? Have you upgraded this project from Active Reports for .NET 1.0 to Active Reports for .NET 3.0? Could you please try upgrading to the latest build 5.2.1236.2 and check if you still face any issues? You may download the latest build from here. Any further information provided to isolate the issue would be appreciated.

Regards,
Sankalp

Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-10-2009, 1:00 AM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large

Hi,

We were using Active reports for .Net 1.1.  With that version, the application is working fine.  we don't experience any problem.

We recently upgraded to Active reports for .Net 3.0.  I installed the latest Build (ActiveReports for .NET 3.0 Build 5.2.1236 (SP2, Hotfix 8) )

But, the application is not working with the new version.  I am getting the "Page header/footer too large. Increase paper size or reduce header/footer height" error.

I uninstalled the latest version and tried with the old version again.  It is working perfect.

So, Kindly let me know how to proceed.

Thanks and regards,
K. Thilakar

   Report 
   07-10-2009, 10:16 AM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

Could you please provide us the RPX layout of your report which consistently throws the exception, for examination? You can save the layout by calling the SaveLayout() method before you call Run() in your report.

This will help us to analyze whether the PageHeader/Footers are not too large for the page considering margins. Any further information provided to isolate the issue would be appreciated.

Regards,
Sankalp
Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-14-2009, 9:36 AM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large

Attachment: report.rpx

Please find attached .rpx report file. I have generated it using SaveLayout method as mentioned by you.

It works with the active report for .net 1.1 dlls. But, it is not working with active report for .net 3.0 dlls.

Kindly, let me know how can we resolve this issue with active report for .net 3.0 dlls.

Thanks!

 


   Report 
   07-14-2009, 1:24 PM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

Thank you for sending the RPX layout of the report. Unfortunately, the RPX file seems to be corrupted as I am unable to load it at my end. Could you please resend the RPX file after saving the layout again? Please check that you are able to load the RPX file at your end before sending it again.

Also could you please specify the build of Active Reports with which the report is running fine? You have mentioned it as Active Reports for .NET 1.1, but could you kindly provide us the build number so that it becomes clear? You may follow this link to know how you may identify the build number.

Regards,
Sankalp
Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-14-2009, 2:08 PM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large

Thanks for the quick reply.

Are you trying the load the report using LaodLayout method. I am able to load it. Please use this link for reference - http://www.datadynamics.com/forums/69430/ShowPost.aspx

If you are still not able to load it. I have attached the solution with the report where you can test it. Runtime version used here is v2.0.50727

Build number is v1.0.3705 where it is running fine.

Thanks!


   Report 
   07-15-2009, 9:57 AM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

I ran the application and noticed that the height of the PageHeader in the RPX file is “7815 twips” and the height of the PageFooter is “6075 twips” which end up in making the total height of the page more than the printable height of a page which also includes 1 inch margin.

If you decrease the PageHeader height and the PageFooter height which fits into the printable height of the page then there is no exception thrown. I was able to test the same at my end. As you have mentioned that you were able to run the same report in a previous version of ActiveReports, could you specify whether you actually ran the conversion utility on your reports? Also are these RPX files from the End User Designer?

Regards,
Sankalp


Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-15-2009, 11:46 AM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large

We ran Visual Studio 2008 conversion utility to convert the solution in .Net 3.5. Do we have any conversion utility for reports. These rpx files were created in active report designer in VS 2003 with Active Reports for .Net 1.x

In the attachment of my previous post, you can find VS 2003 solution in the backup folder for your reference.

Thanks!


   Report 
   07-16-2009, 2:16 PM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

Could you please try to decrease the height of the PageHeader and PageFooter in the RPX file and check whether you are able to run the application? I was able to run it at my end after decreasing the height.

Did you convert your reports directly from VS2003 to VS2008? The recommended approach to convert your reports to 3.0 and move forward to VS2008 is as follows:

a) Back up the project
b) Open the ActiveReports project in the version of Visual Studio the reports were originally created in (VS2003)
c) Ensure you have the latest build of ARN 3.0 available installed, since it is needed to work with VS2003 you must use the framework 1.1 compiled build of Active Reports for .NET 3.0. You can find the update here.
d) Run the conversion utility located under the Visual Studio tools menu (Tools > Convert ActiveReports).

You can find some additional information about the conversion utility here.

Regards,
Sankalp
Sankalp Sen
GrapeCity- DataDynamics
   Report 
   07-16-2009, 3:58 PM
Thilakar is not online. Last active: 7/23/2009 12:46:49 AM Thilakar

Not Ranked
Joined on 07-07-2009
Posts 7
Re: Page header/footer too large

I converted the report using Visual Studio tools menu (Tools > Convert ActiveReports). It is still giving me same error while execution. It is not possible to change the height of the PageHeader & PageFooter due to some requirements. As it is already working with earlier version of Active Report for.Net 1.1.

Do you know how can we fix this other than by changing the height.

Thanks!


   Report 
   07-20-2009, 4:07 AM
SankalpS is not online. Last active: 2/8/2010 7:07:01 PM SankalpS

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

DDStaff
Re: Page header/footer too large
Thilakar,

Whenever any report is rendered the PageSize is calculated according to the default papersize of the default printer. You can access the Page Settings dialog by selecting Report > Settings from the toolbar menu. For example at my end the default paper height is set to 11 inches for the printer, which includes top and bottom margins of 1 inch each. So the total margin height comes to 2 inches which leaves the remaining paper height to 9 inches.

On the other hand your report’s Page Header height is set to 5.427 inches, the detail section to 0 inch and the Page Footer section’s height is set to 4.219 inches. The total height of your report page comes to 9.646 inches.

Now if you compare the total available height of the page and the height of the report page which has to be rendered on it, you will clearly notice that the amount of space available is not adequate enough to support the report page. This as a result throws the exception which you are getting.

Now instead of changing the PageHeader/Footer height you may change the page settings by similar calculations and alter the margins and default paper size from the report settings menu as mentioned above. I hope this clarifies why you are getting such exception and the exception message should disappear.

Regards,
Sankalp
Sankalp Sen
GrapeCity- DataDynamics
   Report 
GrapeCity » Product Support » ActiveReports f... » Page header/footer too large

Privacy Policy | Copyright © 1997-2010 - GrapeCity, inc.