?
Solved

Call a SQL Reporting Services report from Windows App

Posted on 2006-11-20
2
Medium Priority
?
221 Views
Last Modified: 2010-04-23
hi

i need to open a reporting services report in pdf format from a button_click() in a windows forms application.

i currently use:

Dim PI As New System.Diagnostics.ProcessStartInfo("iexplore.exe")
Str = Str & "&rc:Parameters=false&rc:Zoom=Page Width&rs:Command=Render&rs:Format=PDF"
PI.WindowStyle = ProcessWindowStyle.Maximized
PI.Arguments = Str
System.Diagnostics.Process.Start(PI)

but this is messy as it leaves open a "page cancelled" ie browser... is there any way i can just click on the button and the pdf report open directly?
many thanks

j
0
Comment
Question by:A4eIT
[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
2 Comments
 
LVL 14

Expert Comment

by:Ramuncikas
ID: 17978447
Your code launches IE, so here is nothing to complain about.
You need a bit different approach to the problem.

http://www.vbdotnetheaven.com/Code/Jul2003/2107.asp

Download pdf to user's temp dir and then launch Acrobat Reader (or even use ShellStart=True).

HTH
Ramuncikas
0
 
LVL 14

Accepted Solution

by:
Ramuncikas earned 2000 total points
ID: 17978466
Or you can use My.Computer.Network.DownloadFile(<url>,<path>) if you're using .NET 2.0/VS2005.

But I think both cases will need authentication.

Don't hesitate to ask for further assistance if needed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
Suggested Courses

764 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