Solved

Call a SQL Reporting Services report from Windows App

Posted on 2006-11-20
2
218 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 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

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

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…

733 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