vb.net report viewer multiple reports - vb.net

Within vb.net is there a way I can dynamically create multiple reports using the same rdlc but with different SQL statements.
So in essence I want to write a loop that will open the same report multiple times within the viewer which will end up having many pages..

Apparently not, I ended up creating a new report and using the list box tool.

Related

Error with nested crystal reports **Not supported within subreports**

I have a vb.net solution that is developped using vs 2010 and .net framework 4.0.
On a submit button reports are generated using Crystal Reports version 13.0.2. Reports are filled with datasets and some of them are nested reports.
Suppose I have report A, with sub-report B and B contains a sub-report C. I am using the below code to fill data:
MainReport.Load(Server.MapPath("~\Reports\A.rpt"))
MainReport.OpenSubreport("B.rpt").SetDataSource(DsB)
MainReport.OpenSubreport("B.rpt").OpenSubreport("C.rpt").SetDataSource(DsC)
But the third line is throwing an error
Not supported within subreports.
What is the error here? Any suggestions?
Please note that I am not using parameters in subreports.
Nested subreports are not supported in Crystal Reports. This is by design.
See also the following discussions:
https://archive.sap.com/discussions/thread/3348939
https://archive.sap.com/discussions/thread/2142327
http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=193
You'll need to re-design your report(s).
MatSnow precisely made clear what is the error.
As a suggestion, the workaround i usually do is to combine groups and details sections.
I cannot say t is always possible, but the main idea would be to use a group section to show the data of A, use the details section to show the data of B, and use a subreport to show the data of C.
Of course, if your current subreports contains groups, you will have to create more groups.
Another advantage of this approach is because subreports are slow. But it is a problem only for large reports.

Query Records in VB 2010

I've been searching on how to generate daily,monthly and yearly records , but all I'm getting includes crystal reports, unfortunately I'm just a newbie and I don't know how to use crystal reports.
Is there any easy possible way to generate this report/record without using any crystal report or is it possible to implement this using queries on MS Access 2010 , Im gonna display it into a Datagrid View .
Also, Iam bit confuse in what should I use in filtering from daily,monthly,yearly records.
If possible I would like to ask an example code, I'm just new to the programming world.

Advantage to using SSRS or Crystal reports when the output is simple and static?

I have an ASP.NET/C# web app in which the user needs to run reports with various criteria that will ALWAYS yield simple, 2-dimensional, tabular data. I'm tempted to use a sophisticated reporting engine like SSRS or Crystal Reports, but these seem like overkill, since there's really nothing to design (all outputs will be to CSV, or JSON for the browser to render in an HTML table).
In this scenario, am I eating too much complexity by trying to use SSRS or Crystal Reports? Should I instead just write custom classes to dynamically assemble SQL statements (based on user selections) that will be fired against the database?
Does SSRS or CR add anything that is of value (within the requirements constraints I've already described)...?
Its depend on your requirement if you want to minimal overhead on your web app then please go ahead and use your custom codes since you are not required any styling or extra functions.
Just get JSON objects and fill in HTML and go Head !!
I am working with ssrs So i will talk just about it:
ssrs is a very useful tool for building a Reports
all You need is sql server Stored Procedure to build your report
then deploy it to report server and use this report from your app
-now all you need in your app just one page for all reports and you path the URL
dynamically with report name
You need to know this :
-ssrs did not work correctly with all browser
for Exp :
-Print Btn just work with IE
so Mozila and Google you need to use java script to print Report
-some issue with criteria section :
there is no way to rename the 'select value' with drop down
so you need to use java scrip to handle it
also you find ( Null and chick box ) any customer did not know what null mean so
you need first to remove null keyword or to rename it to anther Keyword
also you need java script to do this
the most problem i have :
all reports in reports server so
when i go to a new client what i need
just Sql server no need to setup visual studio and ssrs tool
just to deploy all reports on client report server
its very bad ..
i solved this issue with tool i had make to deploy the all the report
and no need to setup VS just to deploy the report
i think that the most important problem i have
and all of it i found a work around to solve .. and it takes more time
finally :
use ssrs or CR its very easy to use and make report very fast no need to create a custom page for report and develop all its control just like print and export
report to PDF,excel or any type
but if you have a few report i think no need to use any reports tool

How to use crystal report in vb.net 2010

Help!
I have a software that needs to print data and i want to use crystal report so that i could have multiple pages. I've tried using the crystal report and when you're using crystal report you need to export the database and its tables. But the problem is that I've coded my software that when it runs for the first time it will create a specific database and its corresponding tables. how can i use crystal report without exporting the database? I've already downloaded the crystal report. please help me.

Dynamically generating reports in Pentaho and dealing with report definitions store in the database

I am developing a reporting application where a user can select(and order) reports from a list of 100 reports and ask for a master report. This master report will contain all the selected reports in the exact order and with a table of contents listing the reports included in the master report. The reports available for the user to select (which could be 100s) are stored in the database.
My questions are :-
To generate the master report with the user selected reports, the only solution I can see is using the Reporting Engine API to generate a dynamic report into which I have to add the user selected reports as subreports. Is this the right and easiest way to approach this problem? Does anyone have samples of the Reporting Engine API usage especially to inject subreports in a Master report?
Since I am storing the reports in the db(blobs), I am trying to find a way to generate my sub reports with an inputstream rather than a URL as specified in ResourceManager.createDirectly(url, MasterReport.class), but haven't been successful till now. How can I generate reports from definitions stored in the database? There should be some resource abstraction.
Read your reports into a byte-array and then use the ResourceManager.createDirectly method as usual. That will solve your problem of parsing the reports.
You can parse them directly into SubReports by using
ResourceManager.createDirectly(bytes, SubReport.class)
These subreports can then be added to your master report as banded subreports. if you want your selected reports to start on a new page, make sure you set the "pagebreak-before" style on your subreport's report-header.
There is a resource abstraction: It is called "LibLoader" and you can create your own ResourceLoaders that deal with the problem of getting your data out of your database as raw-streams so that the ResourceFactory implementations can interpret/parse the raw-data.
But every database is designed differently and thus you as the system integrator have to write the glue code for it. We only can offer the interfaces.