Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Call a SQL Reporting Services report from Windows App

Posted on 2006-11-20
2
Medium Priority
?
222 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

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

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…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …

618 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