Print Multiple Telerik Reports? - c#

I currently have an ASP.Net/C# system which allows the User to Dynamically Create/Export (PDF) Telerik Reports for Employees in the database. The User is given the choice to Select from a list of Employee's to Export, or to Export them all.
The Telerik Report Viewer currently has a designated "Print" button, but I would like to give the Users the ability to Print Multiple Reports when Selected, or when the "Print All Reports" button is clicked.
Is there a way to proggramatically Print Multiple Dynamic Telerik Reports? (and give a Print Preview if possible?)

Sorry for the double-post, but I ended up solving this simple question on my own.
Using the Methods I had already written for the PDF export of the Reports, I looped through and added each Report to a "ReportBook". I then displayed the ReportBook in the ReportViewer I already had on my page.
This gave me the "Print Preview" aspect I was looking for, and the ability to Print Multiple Reports.
Thought I'd share for future reference
Best Regards

Related

SSRS export report using C#

I want to ask is there any way to export SSRS report programmatic using C#
Export through ssrs report using C# When reports Run it should save on local disk
Please see the image screen shot
enter image description here
Like i dont want to export like this as above screen shot...
i want it like when report click it should be export or save in local disk
is there any code then please help me
Yes you can. Search for "ReportExecutionService SSRS C#". You can then just specify whether you want Excel or PDF in the line ".Render(format, ...."
An example can be found at http://www.aspose.com/docs/display/wordsreportingservices/rendering+reports+programmatically
If you want to automatically save the report when you display it with the Report Manager website, then it is not possible.
You create a client/web application and use the Reporting Services Web Service (here are the supported formats) to render the report, but you wouldn't be able to trigger your application from the Report Manager.
If your users really need to display and save the report at the same time, then you could use ReportViewer controls in your application and add some code to save the report automatically when the user display a report.
It would fit your needs but will take some time to develop, because you will need to redevelop a "report explorer" to browse in the different folders if you need to have the same user experience.

Editing parts of document in WPF to print

I am making WPF application in C#.
I want to make users to fill up some fields in program and after clicking Save it will save document (XPS or PDF) from template with filled fields.
I started learning Net and C# about 2 weeks ago and don't know what is the best way in this application to make a filled document from template and user input.
You can use Report Viewer Control for that. It will allow you to create a template in .rdlc format and then fill in parameters during run-time.
Check out official page here

How to design report at run time SSRS

most of the time we point store procedure or table and then SSRS report designer show us field and we just drag drop those field on to report designer surface. after all we call those report programmatically and pass parameter and report shown on report viewer.
now my company want that customer will customize the report who will see the report. they want to display all the fields in a form and just customer will select each field and place on report designer surface and give some input like filter condition like date range or employee id etc and report will be shown. also at run time if customer want they can add text or move existing field etc.
i do not have any idea how could i do this with SSRS. if this is possible with SSRS then please guide me in such a way as a result i can start the job or if possible give me few relevant url of that kind from where i can get the idea. thanks
SSRS is capable of reading reports generated on-the-fly, but they have to be made just right. SSRS reports are XML documents that specify the data structure and report object structures and how the two are related. Using Visual Studio, you can use certain classes to create the XML document which is then read & filled with data on the server, then exported to the client as a standard webpage.
Here is a link to a tutorial. This should be a good starting point.
Here is a small but working example of generating RDL on-the-fly with some useful links to MSDN documentation: "How to dynamically generate SSRS Report in Code"
Hope it helps!

MS Report Viewer Displaying Single Page

I'm working on a WinForms program in C# which uses a ReportViewer control to display a fairly large *.rdlc report. The report was recently upgraded to the 2008 version, and now displays what should be 80+ pages as a single page and cuts off the bottom. It only seems to happen on one specific report, though it works fine in print preview and exports to PDF OK.
It may be that the report is just too long?
The only thing I've come across on Google suggested making all the cell KeepTogether properties true, which didn't help.
Open Your .rdlc file
goto Report-->ReportProperties-->Layout
Adjust your height,width,top,bottom

how to print (on printer) table from database using c#

I work on some project that is migrating from vb6 to web (asp.net). I need to print some kind of report - A table from database and number of simple headers with date and time. In vb it was implemented using vsPrinter object. Is there any Class in C# that is similar to this Class in vb6 in its functionality? If there in no such thing in .net, what is the easiest way to do this?
Thanx for assistance!
Remember you are moving to the web so you don't have access to the hardware printer controls. You only have access to what the browser gives you. If you are not doing anything fancy with this you can do one of two things.
Since this is an ASP.NET webpage, simply create a new browser or popup and render your report as html. The user can them choose print from the browser print dialog or you can launch it with some generated javascript.
Use the Microsoft Report and Report Viewer controls is you need more formal report layout. These are available from your toolbox under the category Reporting.
I think the easiest way would be by using any reporting tool, one of the powerfull tools is Crystal reports, just google it an you will find alot of useful tutorial such as:
Creating Crystal Reports using C# with Datasets.
Crystal reports in ASP.NET
You can also find alot of useful threads about it here in SO under Crystal Reports tag, like:
How to use Crystal Reports with ASP.NET?
C# Crystal Reports Tutorial on asp.net?

Categories