Print Page | Close Window

Loading the subreport in the main report problem

Printed From: Crystal Reports Book
Category: Crystal Reports for Visual Studio 2005 and Newer
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=8990
Printed Date: 16 May 2024 at 10:34pm


Topic: Loading the subreport in the main report problem
Posted By: ZidaneXero
Subject: Loading the subreport in the main report problem
Date Posted: 30 Jan 2010 at 7:46am
Hello Everyone

I need some expert advice on this problem that i have, i been trying to google this issue but still no luck.

Im using VB 2005 and the Crystal Reports XI.

I have a "Purchase Order" program that im trying make my company use to reduce cost and save paper.

So what my report does is print the "Providers Info and Details of what we need", so the program makes only one print of the report on a 8.50x11in page, so i managed to add a sub report of the original report like a copy of it.

something like this

-------------------------------
Original
Report Header
Page Header
Details
Report Footer
Page Footer
-------------------------------
Sub-Report
Report Header
Page Header
Details
Report Footer
Page Footer
-------------------------------

But the problem i have is that i want that sub report to be a copy of the original, but when i run it at VB2005 it gives me this issue,

Object reference not set to an instance of an object.

and that i should use this "Use the New keyword to create the instance. "

So basically what i want to do is make a mirror of the main report so that the hole page is used and the sub report should load the same information in the main report

Thanks in advance..



Print Page | Close Window