Solved

Call a SQL Reporting Services report from Windows App

Posted on 2006-11-20
2
214 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
  • 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 500 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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 was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video discusses moving either the default database or any database to a new volume.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now