Solved

Reporting Services Report Viewer -> Set which paper tray to use

Posted on 2006-12-01
6
1,312 Views
Last Modified: 2012-05-05
Hello there,

is there any way to set the paper tray which the ReportViewer-control should use?

I've got a lot of reports, some of them are DIN A4, some envelope formatted. In runtime I've got the information, which paper tray to use ("Tray 1" or "Tray 2"). When the customer clicks the printer-symbol rule which tray has to be used.

Some ideas???


Thanks, Tobias
0
Comment
Question by:ibitech
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
6 Comments
 
LVL 21

Expert Comment

by:Yurich
ID: 18064169
I presume that you're talking about some application, but you don't say much about it, neither about what reporting tools you're using... But in general, for example if you're using C# in ASP.NET application, it is possible programmatically access your printer properties and set paper size and feeding trays as well. With different viewers the technicques would be different, so I'd recommend to post your question in the appropriate area and be more specific.

Good luck,
Yurich
0
 

Author Comment

by:ibitech
ID: 18091976
Yes. I'm talking about a WinForm-Application which is developed in VB.NET 2003.

In this WinForm I placed the ReportViewer-control from Microsoft ReportingServices. I use the ReportViewer in local-mode. The rendering of the report works fine.

Now I want to print the report. I want now that the user doesn't have to select which paper tray to use. I have this information.

The user just presses PrintButton and in code behind I set "for this report I select tray 1". So the user just has to press "ok" in the PrintDialog.

Is this the right in the right topic area? Think so... there is no ReportingServices are....
0
 
LVL 21

Accepted Solution

by:
Yurich earned 125 total points
ID: 18092133
Well, that's what I suggested... Reporting Services have no control over a printer and I don't know any means of implementing what you want in Reporting Services. In short - there IS NO code behind in Reporting Services... There is a report and it's represented as an XML file. You can use some VB functions to some extent but nothing like controlling your printer settings.

In contrary, I believe you can do it in you application part. Like capturing your printer, extracting current settings, changing them and passing back to a printer (when your user presses the print button)... There will be a question whether you setting are going to stand after control is passed to the Reporting Services, but you won't know before you try...

regs,
yurich
0
 
LVL 18

Expert Comment

by:chrismc
ID: 18104772
Hi Ibitech,
What Yurich was correctly saying is that you can't do this within RS itself, so whatever development environment you use (i.e. VB, C#) - go to that area for further help.

Good luck,
Chris
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Jaspersoft Studio is a plugin for Eclipse that lets you create reports from a datasource.  In this article, we'll go over creating a report from a default template and setting up a datasource that connects to your database.
How to increase the row limit in Jasper Server.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question