473,799 Members | 3,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Open SSRS Reports in an ADP


Does anyone know if it is possible to integrate SQL Server Reporting
Services Reports in an ADP? Is there a plugin or anything that can do
this? I have a hunch that the Web Viewer Active-X componant wont be up
to the job. I've googled it but it seems to be slim pickings!

I need to keep this ap as easy to ".NET-ise" as possible, so I'm
trying to stay away from Access Reporting - as great as it actually
is.

Worst case I'll just shell to the SSRS report viewer - but it would be
nice to keep it all together in the ap, like the users hare used to.

Cheers,

Bill

Mar 28 '07 #1
2 4775
Hi Bill,

Here is a sample URL string for calling a Report from Sql Sel Server
reporting services (sql server 2000). This URL includes arguments, if
the report takes arguments

Dim url As String

url=
"http://companyweb/ReportServer?/SubscriberRepor ts/Active+Copy+Cou nt+By+
Copy+Count&rs:F ormat=pdf&argLi stNo=24&argList Sub=UD&argBegin Date=01/01/8
0&argEndDate= 12/31/20&argPaidStatu s=*"

The strings calls the Report server:
http://companyweb/ReportServer?/

and the directory where the report resides:
SubscriberRepor ts/

then the report name:
Active+Copy+Cou nt+By+Copy+Coun t

Note: the + symbol is a space. Report name is
Active Copy Count By Copy Count

Then the format for the report to come out in
&rs:Format=p df

and then the argument list:
&argListNo=24&a rgListSub=UD&ar gBeginDate=01/01/80&argEndDate=1 2/31/20&ar
gPaidStatus=*

Note that the arg list does not delimit the arguments. And in the
actual RDL (the sql server report) I convert the * to a % (for Tsql
wildcards) using Replace.

Here is how you call reporting services from Access:

fHandleFile url, WIN_NORMAL

And here is the API code for fHandleFile (this is from one of the Access
MVP's)

Option Compare Database

'************ Code Start **********
' This code was originally written by Dev Ashish.
' It is not to be altered or distributed,
' except as part of an application.
' You are free to use it in any application,
' provided the copyright notice is left unchanged.
'
' Code Courtesy of
' Dev Ashish
'
Private Declare Function apiShellExecute Lib "shell32.dl l" _
Alias "ShellExecu teA" _
(ByVal hwnd As Long, _
ByVal lpOperation As String, _
ByVal lpFile As String, _
ByVal lpParameters As String, _
ByVal lpDirectory As String, _
ByVal nShowCmd As Long) _
As Long

'***App Window Constants***
Public Const WIN_NORMAL = 1 'Open Normal
Public Const WIN_MAX = 3 'Open Maximized
Public Const WIN_MIN = 2 'Open Minimized

'***Error Codes***
Private Const ERROR_SUCCESS = 32&
Private Const ERROR_NO_ASSOC = 31&
Private Const ERROR_OUT_OF_ME M = 0&
Private Const ERROR_FILE_NOT_ FOUND = 2&
Private Const ERROR_PATH_NOT_ FOUND = 3&
Private Const ERROR_BAD_FORMA T = 11&

'************** *Usage Examples******* *************** *
'Open a folder: ?fHandleFile("C :\TEMP\",WIN_NO RMAL)
'Call Email app: ?fHandleFile("m ailto:da****@ho tmail.com",WIN_ NORMAL)
'Open URL: ?fHandleFile("h ttp://home.att.net/~dashish",
WIN_NORMAL)
'Handle Unknown extensions (call Open With Dialog):
' ?fHandleFile("C :\TEMP\TestThis ",Win_Norma l)
'Start Access instance:
' ?fHandleFile("I :\mdbs\CodeNStu ff.mdb", Win_NORMAL)
'************** *************** *************** ********

Function fHandleFile(stF ile As String, lShowHow As Long)
Dim lRet As Long, varTaskID As Variant
Dim stRet As String
'First try ShellExecute
lRet = apiShellExecute (hWndAccessApp, vbNullString, _
stFile, vbNullString, vbNullString, lShowHow)

If lRet ERROR_SUCCESS Then
stRet = vbNullString
lRet = -1
Else
Select Case lRet
Case ERROR_NO_ASSOC:
'Try the OpenWith dialog
varTaskID = Shell("rundll32 .exe
shell32.dll,Ope nAs_RunDLL " _
& stFile, WIN_NORMAL)
lRet = (varTaskID <0)
Case ERROR_OUT_OF_ME M:
stRet = "Error: Out of Memory/Resources. Couldn't
Execute!"
Case ERROR_FILE_NOT_ FOUND:
stRet = "Error: File not found. Couldn't Execute!"
Case ERROR_PATH_NOT_ FOUND:
stRet = "Error: Path not found. Couldn't Execute!"
Case ERROR_BAD_FORMA T:
stRet = "Error: Bad File Format. Couldn't Execute!"
Case Else:
End Select
End If
fHandleFile = lRet & _
IIf(stRet = "", vbNullString, ", " & stRet)
End Function
'************ Code End **********

Rich

*** Sent via Developersdex http://www.developersdex.com ***
Mar 29 '07 #2
Cheers - I'll look into using that!

Bill

Mar 30 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
5124
by: Jason1983 | last post by:
I have SSRS deployed on a machine. My problem is whenever I create a new SSRS report project in Visual Studio .NET, I have to change the "TargetServerURL" name in the project properties to reflect the new URL. So I was wondering if there is a setting in the Visual Studio .NET environment that would allow me to do that change once and for all, so that any new project will automatically have the TargetServerURL that is...
0
1281
by: Aswanth | last post by:
I'm Working with SSRS-2005 Reports in C# Web Applications.. I'm having One Doubt regarding Division.. In Chart Control (Pie-Chart Type) (Properties--> Data--> Values--> (Select Edit)--> EditChartValues--> PointLabels-->Label-Expression) I'm Using the Following expression.. =Floor((Fields!Price.Value*100)/Sum(Fields! CPU.Value, "DataSet1_AmountDetails")) & "%"
0
1862
by: Aswanth | last post by:
I'm Generating Reports in SSRS-2005.. Previously I got the Data from One Database & Generated Reports.. Now I used to get the Data from Two Different Databases(ie Database-1 & Database-2) & to generate the Reports.. I'm having one Stored Procedure(Get_Data) which will combine Two databases & get the data from them.. It is working fine for Me..(I tested in Sql Server Management Studio).. But it is Not working fine in my Visual Studio.. ...
0
1884
by: Aswanth | last post by:
I'm Working with Asp.Net with C#.. & I'm Generating Reports in SSRS-2005.. Till Now I'm Generating Reports in SSRS-2005 with Stored Procedure.. in Which I'm Generating Reports for One Particular User Details(ie I wrote Stored Procedure for Getting One Users Details).. Now I Want to Generate the Reports for Different Users DYNAMICALLY (Here, I wrote another Stored Procedure which contains UsersID's as Input...
5
8387
by: Aswanth | last post by:
I'm Using Asp.Net with C# & Working with SSRS 2005 for Generating Reports.. The Following Expression I'm using in Reports to Show the Percentage of Particular Items in REPORT.. =Round((Fields!Clicks.Value*100)/Sum(Fields!Clicks_Show.Value, "DataSet1_Get_All_1234567"),2)& "%" With this Expression I'm Getting Reports Percentage(Total) 100%(NO Problem).. But for Some Reports it is Coming >100 or < 100 Total Percentage (ie 105% or...
0
1323
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Text Log File.. I want to Get this Data from this Log File & to Generate REPORTS in SSRS 2005.. Please give me the Suugestions for Doing this.. Thank You..
1
1819
by: Aswanth | last post by:
I'm Using Asp.Net with C# & SSRS 2005 for Generating Reports.. I'm Having HUGE Data in Microsoft Excel Sheets .. I want to Get this Data from this Microsoft Excel Sheets & to Generate REPORTS in SSRS 2005.. Please give me the Suggestions for Doing this.. Thank You..
0
1651
by: kuper | last post by:
Hi i have some reports developed in SSRS 2008. I like to display them on my WPF. Please suggest me what are the options i have is their any in built sopprt for SSRS? I am not very keen to access it through embarded IE control.
0
1090
by: S_K | last post by:
Hi, I have a problem in which we need a ton of reports running against an AX system and we need allot of people building reports using SSRS (sorry Report Builder won't work for us). The problem is that we don't want to have to install VS 2005 on every machine. Is there a way to develop SSRS reports with out using VS 2005? Thanks in advance for your help.
0
9685
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6803
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4135
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3751
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.