Friday, March 30, 2012

Reporting Services and multiple data sources

I have a group of reports that are the same for 3 different companies, the difference is the data connection. Is there a way I can change the data connection based on a variable passed in at the time of report execution?

thanks

There are several options of how to achieve this on RS 2000:
* Use a custom data processing extension
http://msdn.microsoft.com/library/en-us/RSPROG/htm/rsp_prog_extend_dataproc_5c2q.asp
* Use the SOAP API by calling SetDataSourceContents:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_2ojd.asp
* Use the linked server functionality of SQL Server. Check MSDN for details:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_12_9ooj.asp
* If the databases are on the same server (SQL 2000), use a dynamic query text (i.e. ="select * from " & Parameters!DatabaseName.Value & "..table")
* If you're just toggling between two or three databases, you can publish the same report multiple times with different names using different data sources. Then write a main report that shows/hides the correct subreport based of whatever criteria you want. (Drawback: bad performance)

If you are running RS 2005, you can use the expression-based connection string approach: Finish the design of the datasets with a constant connection string and make sure everything works. Then, go back to the data tab and open the dataset/data source dialog and change the connection string to be an expression. Use string concatenation to plug in the parameter value. Here is an example of how the RDL would look for a parameter-based connection string:
<DataSources>
<DataSource Name="Northwind">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>="data source=" &amp; Parameters!ServerName.Value &amp; ";initial catalog=Northwind;"</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
</DataSources>
<ReportParameters>
<ReportParameter Name="ServerName">
<DataType>String</DataType>
<Prompt>ServerName</Prompt>
</ReportParameter>
</ReportParameters>
You can also check this blog posting: http://blogs.msdn.com/bwelcker/archive/2005/04/29/413343.aspx

-- Robert

|||Are you also able to set credentials for access to the Data Source via this approach?or does it only allow you to modify the Data Source itself|||The credentials can only be changed if you go with the SetDataSourceContents approach or if you have your own custom data extension which controls the credentials for the actual data source access independently.

-- Robert

reporting services and msde

hi,
I've a question: Can I use the Reporting Services with MSDE?
Where Can I find the prices of "Reporting Services"?
Thanks
Can I use the Reporting Services with MSDE
-Yes, but only as a source. Reporting Service need an SE or EE Edition for
productional enviroment. For developing DE would be enough.
Where Can I find the prices of "Reporting Services"?
-Prices can be "queried" :-) from your software distributor, depends on your
licencing contract with MS.
-Licensing can be found here:
http://www.microsoft.com/sql/reporting/howtobuy/faq.asp
HTH, Jens Smeyer
http://www.sqlserver2005.de
"Roberta" <roby77@.tiscali.it> schrieb im Newsbeitrag
news:eBUsjTfQFHA.3140@.tk2msftngp13.phx.gbl...
> hi,
> I've a question: Can I use the Reporting Services with MSDE?
> Where Can I find the prices of "Reporting Services"?
> Thanks
>
|||I've a .NET web application that uses MSDE...
I would like to use Reporting Services...
What solution Can I use ? ... if I can't to use Reporting Services
|||-Third party
-Free stuff http://sourceforge.net/projects/sharppdf/ (didnt try it out)
Tell me your experience with that if you choose that.
-best Choice: get a Reporting Server SE/EE ;-)
HTH, Jens Smeyer.
http://www.sqlserver2005.de
"Roberta" <roby77@.tiscali.it> schrieb im Newsbeitrag
news:%23DaIkJhQFHA.812@.TK2MSFTNGP10.phx.gbl...
> I've a .NET web application that uses MSDE...
> I would like to use Reporting Services...
> What solution Can I use ? ... if I can't to use Reporting Services
>
|||I must to use MSDE
and I would like to know a solution for generate reports with
subtotals/totals/... from MSDE query and stored procedure... Can you help
me? What Can I use?
Thanks thanks thanks
|||Hi Roberta,
Currently you need to use something like ActiveReports
(www.DataDynamics.com) but if you are ok to use SQL Server Express, you'll
be able to use new reporting controls in VS.NET 2005.
HTH,
Greg Low [MVP]
MSDE Manager SQL Tools
www.whitebearconsulting.com
"Roberta" <roby77@.tiscali.it> wrote in message
news:%23qA0U5uQFHA.1528@.TK2MSFTNGP09.phx.gbl...
>I must to use MSDE
> and I would like to know a solution for generate reports with
> subtotals/totals/... from MSDE query and stored procedure... Can you
> help
> me? What Can I use?
> Thanks thanks thanks
>
sql

reporting services and mozilla

would someone know what i should to to make my report display in mozilla. I have added a textbox at the bottom of the reports' layout and this only helps a little because only the firts page of the report shows clearly in mozilla. The rest of the pages appear squashed to the left in the mozilla browser.

This is due to a bug in Mozilla code. For your reference:

https://bugzilla.mozilla.org/show_bug.cgi?id=350506

We are investigating a possible workaround which may be available in SP2. Stay tuned.

-Chris

Reporting services and microsoft exchange on the same computer

could u say if there would be a problem with reporting services and
microsoft exchange running on the same computerThere is no reason this shouldn't work, but just evaluate whether your
server can cope with the expected loads from the two apps.
Chris
Dale wrote:
> could u say if there would be a problem with reporting services and
> microsoft exchange running on the same computer|||Just keep on eye on the resource usage - see if CPU is consistently high, or
there is lots of paging.
Basically it depends on usage of both applications.
"Dale" wrote:
> could u say if there would be a problem with reporting services and
> microsoft exchange running on the same computer|||Thank you. Are there any known issues with Windows Server 2003 SP1?
"Mary Bray [SQL Server MVP]" wrote:
> Just keep on eye on the resource usage - see if CPU is consistently high, or
> there is lots of paging.
> Basically it depends on usage of both applications.
>
> "Dale" wrote:
> > could u say if there would be a problem with reporting services and
> > microsoft exchange running on the same computer

Reporting Services and Mapping

I was just wondering if SSRS will support geographical mapping in the
2005 version. I know there are ways to get around it now, but does
anyone know if the 2005 version will support maps out of the box?
Thanks.On 30 Mar 2005 11:14:46 -0800, "Kenny" <kvu@.thereturnexchange.com>
wrote:
>I was just wondering if SSRS will support geographical mapping in the
>2005 version. I know there are ways to get around it now, but does
>anyone know if the 2005 version will support maps out of the box?
>Thanks.
Kenny,
I believe that was being considered. I don't know the current
position.
For SQL Server 2005 Reporting Services you are probably best to ask
questions on the newsgroup at
microsoft.private.sqlserver2005.reportingsvcs. Despite its name it's a
public newsgroup.
Andrew Watt
MVP - InfoPath

Reporting Services and Log Shipping

Hey All,
I setup a log shipped server so we could have a warm
backup but the only way I could make the business case to
spend the money was to use it as a reporting server as
well. Needless to say, people are not that happy about
getting kicked out all the time when the data is loading.
Is there anyway to mask the fact that the data source is
unavailable and just get reporting services to wait until
the load is done and resubmit the query when the
connection is available again.
Thanks,
BryanHave you looked into using execution snapshots. You could set the data to
only be refreshed when the data source is known to be available.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"bmurtha" <anonymous@.discussions.microsoft.com> wrote in message
news:7ce501c47735$e821d580$a301280a@.phx.gbl...
> Hey All,
> I setup a log shipped server so we could have a warm
> backup but the only way I could make the business case to
> spend the money was to use it as a reporting server as
> well. Needless to say, people are not that happy about
> getting kicked out all the time when the data is loading.
> Is there anyway to mask the fact that the data source is
> unavailable and just get reporting services to wait until
> the load is done and resubmit the query when the
> connection is available again.
> Thanks,
> Bryan

Reporting Services and Linked Server - can't stop execution of pro

Hello,
I have the same problem with Reporting Services and Linked Server.
The Reporting Services receive data source from stored procedure, which
executes inside it stored procedure on the Linked Server. If Reporting
Service successfully forms the report, then everything is OK, but if there
are some troubles (e.g. I close the browser page where report was forming), I
have the problem: the process on the Linked Server doesnâ't stop itself. Itâ's
continuing executing for eternity and locks other processes. The only way to
stop it â' is to kill it. Iâ'll try to set timeouts in the configuration of
Reporting Service and Query Timeout in the Server Options of Linked Server,
but it doesnâ't help. This problem shows itself only if I work through Linked
Server.
Thanks for your help.
Boris.The default timeout for linked server queries is 600 seconds, i.e. 10
minutes. This can be changed in SQL Server using an sp_configure option
"remote query timeout".
Yes, you're right, this is a problem which has nothing to do with Reporting
Services. You may want to repost the relevant part of your question to a SQL
Server forum. You may get more advice on the issue.
HTH
Charles Kangai, MCT, MCDBA
"Boris" wrote:
> Hello,
> I have the same problem with Reporting Services and Linked Server.
> The Reporting Services receive data source from stored procedure, which
> executes inside it stored procedure on the Linked Server. If Reporting
> Service successfully forms the report, then everything is OK, but if there
> are some troubles (e.g. I close the browser page where report was forming), I
> have the problem: the process on the Linked Server doesnâ't stop itself. Itâ's
> continuing executing for eternity and locks other processes. The only way to
> stop it â' is to kill it. Iâ'll try to set timeouts in the configuration of
> Reporting Service and Query Timeout in the Server Options of Linked Server,
> but it doesnâ't help. This problem shows itself only if I work through Linked
> Server.
> Thanks for your help.
> Boris.
>sql

Reporting Services and FXCop

When I run FxCop on an ASP.NET app that has a reference to the reporting
services web reference, I get a very long list of 'errors' that are not in
my code, but in the web service. As there isn't anything that I can do about
these 'errors' is there a way to tell FxCop to ignore the reference?
--
Brendan Reynoldswell, in the target you can expand and exlude certain assemblies/namespaces.
It's funny though, FxCop doesn't automatically check my referenced dlls.
What version are you using? Are you simply adding the 1 assembly to fxcop?
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
http://openmymind.net/redirector.aspx?documentId=51 - Learn about AJAX!
"Brendan Reynolds" <brenreyn@.discussions.microsoft.com> wrote in message
news:OzV9%239p7FHA.1032@.TK2MSFTNGP11.phx.gbl...
> When I run FxCop on an ASP.NET app that has a reference to the reporting
> services web reference, I get a very long list of 'errors' that are not in
> my code, but in the web service. As there isn't anything that I can do
> about these 'errors' is there a way to tell FxCop to ignore the reference?
> --
> Brendan Reynolds
>
>|||"Karl Seguin" <karl REMOVE @. REMOVE openmymind REMOVEMETOO . ANDME net>
wrote in message news:eVoqesq7FHA.3388@.TK2MSFTNGP11.phx.gbl...
> well, in the target you can expand and exlude certain
> assemblies/namespaces.
Ah! Got it, thanks! :-)
That solved the problem for me, but if you're still curious here are the
answers to your questions ...
> It's funny though, FxCop doesn't automatically check my referenced dlls.
Just the web reference, not other references.
> What version are you using?
1.32
> Are you simply adding the 1 assembly to fxcop?
Yes.
> "Brendan Reynolds" <brenreyn@.discussions.microsoft.com> wrote in message
> news:OzV9%239p7FHA.1032@.TK2MSFTNGP11.phx.gbl...
>> When I run FxCop on an ASP.NET app that has a reference to the reporting
>> services web reference, I get a very long list of 'errors' that are not
>> in my code, but in the web service. As there isn't anything that I can do
>> about these 'errors' is there a way to tell FxCop to ignore the
>> reference?
>> --
>> Brendan Reynolds
>>
>

Reporting services and filtering

Hi,

I have being trying this for quiet a while now and I just cant find a solution. Basically I have a field called Total Active. The total active indicates for example..... A project is open or closed. If the project is open, the value 1 is displayed in the database and if closed the value 0 is displayed in the database.

So I have my field in reporting services and now I just want to count all the open projects. I thought you could do this:

= Count(Fields!Active_flag.value = 1)

This does not seem to work.....or my syntax is wrong or something.

Then I tried to pass all the values in Fields!Active_flag as a object using VB custom code. Example:

=code.getTotalActive(Fields!Active_flag.value)

then receive the Object and loop through it to count all the 1's in the Object (Active_flag.value) and pass the total back. However I was not successful with this because I couldn’t get the length of the Object....which I needed to iterate through all the values.

My next attempt which I thought was a sure winner was using a group and filtering out all the 0's which left only 1's that I could count. But this brought about another problem.....the filter only looks for 1's and then counts the 1's and displays then.... But when it doesn’t find any 1's then the entire Field does not display on the report. This is very frustrating because I would rather have is say "no projects active" instead of it not displaying.

Any help will be much appreciated. I have boggled my mind for the solution.

thanks

Ziyaad

I had something similar in my report but it is not that simple because you need CASE Statement to split the column into two Case Active 1, Case Inactive 0 but SQL Server will not recognize your derived columns as valid so you need to put both in temp table and do the calculation. There maybe a more elegant solution but this will give you what you want. I have done many reports both Crystal and SQL Server in the Enterprise so I know that is not an expression problem because SQL can solve it.

So split it do Count(*) of the active column in a temp table.

|||

Not sure I follow. This active and inactive status could change any time. This is because my database pulls information from another SQL database and this process of obtaining my data is run every nigh using a SQL DTS Package.

Could you please explain your solution more?

Thanx

|||If you are using DTS package why not just create separate Active or Inactive destination columns so all you have to do is count the Active column for what you need.|||

Ok, I understand that...I just feel like it's going to be a big effort to create the package all over again. Are you sure there isnt another way?

I am sure using the custom code is easier... if you can get the length of the object passed. I am very new to Reporting Services, which means I basically just started...as well as creating the DTS Packages.

I possible could you maybe explain shortly or give some idea how I would seperate the colums using the DTS packages?

thanks

|||

If you don't want to do it in the DTS package then move the data to a staging table then do an INTO that is SELECT INTO which creates a table with the CASE 1 then Active CASE 0 then Inactive and write a stored procedure which pulls the data from the destination table with COUNT(*) for the Active column and you will get the total. I could not find a more elegant solution, expecting reporting service to filter and give you a count you will need to be an expression expert.

Another option is to create a View with all your query result with Active and Inactive as columns then run a SELECT with COUNT(*) for Active. Run a search for CASE in the BOL and check the link below for more CASE samples.

http://www.craigsmullins.com/ssu_0899.htm

|||

If in the database you have a 1 or 0 (1 being active), couldnt you just do a Sum(Fields!Active.Value) to get the total number of active projects?

Or am I oversimplifying?

BobP

|||

That sound like a good idea, using the CASE. I have done this and added it to my storedPROC which is used to populate my datasource.

However I would like to add that values now to my Report Example:

=Fields!Active.value

However I cannot find this in the expressions box. Is this right and how do i get access to the CASE field from my StoredPROC.

Thanx

|||Modify the CASE statement to add 1 AS Active and 0 AS Inactive, I am sorry I assumed you understand when I told you to do the criteria based conditional split you will know that the derived columns should be renamed. If you are still getting problem use the Case in a Create View which makes both Active and Inactive fields by default and do Select (*) from the View and do the sum or COUNT(*) with SUM.

Reporting services and filtering

Hi,

I have being trying this for quiet a while now and I just cant find a solution. Basically I have a field called Total Active. The total active indicates for example..... A project is open or closed. If the project is open, the value 1 is displayed in the database and if closed the value 0 is displayed in the database.

So I have my field in reporting services and now I just want to count all the open projects. I thought you could do this:

= Count(Fields!Active_flag.value = 1)

This does not seem to work.....or my syntax is wrong or something.

Then I tried to pass all the values in Fields!Active_flag as a object using VB custom code. Example:

=code.getTotalActive(Fields!Active_flag.value)

then receive the Object and loop through it to count all the 1's in the Object (Active_flag.value) and pass the total back. However I was not successful with this because I couldn’t get the length of the Object....which I needed to iterate through all the values.

My next attempt which I thought was a sure winner was using a group and filtering out all the 0's which left only 1's that I could count. But this brought about another problem.....the filter only looks for 1's and then counts the 1's and displays then.... But when it doesn’t find any 1's then the entire Field does not display on the report. This is very frustrating because I would rather have is say "no projects active" instead of it not displaying.

Any help will be much appreciated. I have boggled my mind for the solution.

thanks

Ziyaad

I had something similar in my report but it is not that simple because you need CASE Statement to split the column into two Case Active 1, Case Inactive 0 but SQL Server will not recognize your derived columns as valid so you need to put both in temp table and do the calculation. There maybe a more elegant solution but this will give you what you want. I have done many reports both Crystal and SQL Server in the Enterprise so I know that is not an expression problem because SQL can solve it.

So split it do Count(*) of the active column in a temp table.

|||

Not sure I follow. This active and inactive status could change any time. This is because my database pulls information from another SQL database and this process of obtaining my data is run every nigh using a SQL DTS Package.

Could you please explain your solution more?

Thanx

|||If you are using DTS package why not just create separate Active or Inactive destination columns so all you have to do is count the Active column for what you need.|||

Ok, I understand that...I just feel like it's going to be a big effort to create the package all over again. Are you sure there isnt another way?

I am sure using the custom code is easier... if you can get the length of the object passed. I am very new to Reporting Services, which means I basically just started...as well as creating the DTS Packages.

I possible could you maybe explain shortly or give some idea how I would seperate the colums using the DTS packages?

thanks

|||

If you don't want to do it in the DTS package then move the data to a staging table then do an INTO that is SELECT INTO which creates a table with the CASE 1 then Active CASE 0 then Inactive and write a stored procedure which pulls the data from the destination table with COUNT(*) for the Active column and you will get the total. I could not find a more elegant solution, expecting reporting service to filter and give you a count you will need to be an expression expert.

Another option is to create a View with all your query result with Active and Inactive as columns then run a SELECT with COUNT(*) for Active. Run a search for CASE in the BOL and check the link below for more CASE samples.

http://www.craigsmullins.com/ssu_0899.htm

|||

If in the database you have a 1 or 0 (1 being active), couldnt you just do a Sum(Fields!Active.Value) to get the total number of active projects?

Or am I oversimplifying?

BobP

|||

That sound like a good idea, using the CASE. I have done this and added it to my storedPROC which is used to populate my datasource.

However I would like to add that values now to my Report Example:

=Fields!Active.value

However I cannot find this in the expressions box. Is this right and how do i get access to the CASE field from my StoredPROC.

Thanx

|||Modify the CASE statement to add 1 AS Active and 0 AS Inactive, I am sorry I assumed you understand when I told you to do the criteria based conditional split you will know that the derived columns should be renamed. If you are still getting problem use the Case in a Create View which makes both Active and Inactive fields by default and do Select (*) from the View and do the sum or COUNT(*) with SUM.

Reporting services and existing application

Hello everyone I have a small application in asp.net now I'm trying to use the SQL reporting services. But as soon as I try to connect to the DB on the "connection properties" window I get this error.

Unable to open the physical file "C:\my\Apps\mydb.mdf". Operating system error 32: "32(The file is in use by another process.)".

\

Thanks

Looks like you are using SQLExpress and in your web site, web.config file you are directly attaching a dbf file, so it is getting used by ASP.NET worker process. But again you are trying to access it through reporting services, which is another process. So that is why you are getting this exception.

Try to modify your connection string, instead of AttachDB file name, build a proper connection string to SQL Express

|||

I change my connection string to:

<connectionStrings>
<add name="DBCSCompany" connectionString="Data Source=.\SQLExpress;Integrated Security=True;User Instance=true;Database=C:\Inetpub\wwwroot\apps\App_Data\Database.mdf" />
</connectionStrings>

but I still get the same error

|||

Hi,

First, be sure that the physical path of the mdvb file is correct, I suggest that you shoud put your mdf file in app_code directory. so you can use "AttachDBFilename=|DataDirectory|someMdfFile"to locate the mdf file.

Second, when this problem occurred, just to check if other program is using the mdf file. Such as Visual Studio developpment server. If so, turn it off and try again.

Thank.

Reporting Services and Excel interoperability

Dear friends

I am using SQL Server 2000 reporting services.
But my customer does not like the output reports
He just want to his reports look like Excel 2007 output format or a third party tool Crystal Xcelsius Designer output format.
I am deploying the reports to a Share Point Server.
How can make dynamic reports that he like to see with/without using Excel 2007 or a third party tool.

Thanks OZ

Reporting Services strives to mimic the layout of the report in the Excel export. This means that it tries to attach report items to cells on the Excel sheet, and to do this accurately with the positions of objects appropriate to each other it has to create merge cells, which can cause problems when trying to manipulate the output from Excel. In addition, Excel features and RS features do not always map well, which sometimes results in reports that don't work in Excel the way the user intended them to.

We are aware of these issues and the problems it causes; we are looking at ways to improve the Excel export in future releases.

In the meantime, the best suggestion I have for you is to take a look at SoftArtisans OfficeWriter. It will allow you to design a report in Excel and maintain all of the Excel features in the output report, while allowing you to leverage Reporting Services for data, security, scheduling, management, etc. It works on the Excel 97-2003 formats, which can be read by Excel 2007.sql

Reporting Services and Excel interoperability

Dear friends

I am using SQL Server 2000 reporting services.
But my customer does not like the output reports
He just want to his reports look like Excel 2007 output format or a third party tool Crystal Xcelsius Designer output format.
I am deploying the reports to a Share Point Server.
How can make dynamic reports that he like to see with/without using Excel 2007 or a third party tool.

Thanks OZ

Reporting Services strives to mimic the layout of the report in the Excel export. This means that it tries to attach report items to cells on the Excel sheet, and to do this accurately with the positions of objects appropriate to each other it has to create merge cells, which can cause problems when trying to manipulate the output from Excel. In addition, Excel features and RS features do not always map well, which sometimes results in reports that don't work in Excel the way the user intended them to.

We are aware of these issues and the problems it causes; we are looking at ways to improve the Excel export in future releases.

In the meantime, the best suggestion I have for you is to take a look at SoftArtisans OfficeWriter. It will allow you to design a report in Excel and maintain all of the Excel features in the output report, while allowing you to leverage Reporting Services for data, security, scheduling, management, etc. It works on the Excel 97-2003 formats, which can be read by Excel 2007.

Reporting Services and Excel

Can someone please help me. My first posting for this question went
unanswered. Here goes...I'm trying to create a report in reporting services.
The end result will be a subscription that creates an Excel file with
contains multiple sheets (Tabs). Each sheet should corresponds to a different
query or subreport. All the sheets will be derived from the same data source
and all the sheets except for one have the same column headers. Can someone
tell me how I would set this up in reporting services? I have been able to
create several reports and deployed them individual. The result is a
subscription for each report, and several individual Excel files with one
sheet. Thanks!!
I did something similar with one of our reports. I created each individual
report. I then created one report with the subreports. I put each
subreport within a rectangle and I gave each subreport a different name
(right-click on the subreport | properties | general tab | name). I have
page breaks after each rectangle, and each subreport shows up on a different
tab.
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:49D866DD-D778-458B-BE8B-FF5268B96280@.microsoft.com...
> Can someone please help me. My first posting for this question went
> unanswered. Here goes...I'm trying to create a report in reporting
services.
> The end result will be a subscription that creates an Excel file with
> contains multiple sheets (Tabs). Each sheet should corresponds to a
different
> query or subreport. All the sheets will be derived from the same data
source
> and all the sheets except for one have the same column headers. Can
someone
> tell me how I would set this up in reporting services? I have been able
to
> create several reports and deployed them individual. The result is a
> subscription for each report, and several individual Excel files with one
> sheet. Thanks!!
|||Thank You Keith. Your suggestions worked perfectly after several hours of
tweeking. I'm hoping you can help me customize it even further. Since each
subreport is a Tab or sheet in Excel, I need to pass the name of the
subreport to Excel so that the tabs or subreport assume the subreport name.
Currently each tab is named the default (Sheet1, Sheet2, etc.). Is this
possible? Also, once the report is deployed, I would like to set up a
subscription. Can you assign a certain filename that you want the
subscription to save the file as or does it assign it the name of the
project? Thanks!!
"Keith Kratochvil" wrote:

> I did something similar with one of our reports. I created each individual
> report. I then created one report with the subreports. I put each
> subreport within a rectangle and I gave each subreport a different name
> (right-click on the subreport | properties | general tab | name). I have
> page breaks after each rectangle, and each subreport shows up on a different
> tab.
> --
> Keith
>
> "nupee" <nupee@.discussions.microsoft.com> wrote in message
> news:49D866DD-D778-458B-BE8B-FF5268B96280@.microsoft.com...
> services.
> different
> source
> someone
> to
>
|||Unfortunately it is not possible to controle the naming of the tabs. It is
possible to create a document map (the first worksheeet contains named links
to each tab). This is the only option for now. I had a disucssion with an
individual from Microsoft on this issue and I believe they are looking into
it. There is no official timeline for the enhancement. There is no
guarantee that they will put it in, but I am hoping that it will make it
into the product eventually.
Regarding the name of the file, yes you can specify the name of the file and
the path when setting up the subscription.
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:31E014F7-F155-433F-AEE3-A38C5C817A0E@.microsoft.com...
> Thank You Keith. Your suggestions worked perfectly after several hours of
> tweeking. I'm hoping you can help me customize it even further. Since each
> subreport is a Tab or sheet in Excel, I need to pass the name of the
> subreport to Excel so that the tabs or subreport assume the subreport
name.[vbcol=seagreen]
> Currently each tab is named the default (Sheet1, Sheet2, etc.). Is this
> possible? Also, once the report is deployed, I would like to set up a
> subscription. Can you assign a certain filename that you want the
> subscription to save the file as or does it assign it the name of the
> project? Thanks!!
> "Keith Kratochvil" wrote:
individual[vbcol=seagreen]
have[vbcol=seagreen]
different[vbcol=seagreen]
able[vbcol=seagreen]
one[vbcol=seagreen]
|||Once again Keith, your advised has helped me tremendously, Thanks!!..In terms
of the name of the file, I noticed that you can specify a filename if you are
saving the report to a fileshare directory but you cannot specify a filename
if you are sending the report via the report server email delivery in report
manager. Is there a way around that? My report will be emailed to several
customers and I would like to specify different filenames for each
customer/report based on inidividual subscriptions for each customer.
"Keith Kratochvil" wrote:

> Unfortunately it is not possible to controle the naming of the tabs. It is
> possible to create a document map (the first worksheeet contains named links
> to each tab). This is the only option for now. I had a disucssion with an
> individual from Microsoft on this issue and I believe they are looking into
> it. There is no official timeline for the enhancement. There is no
> guarantee that they will put it in, but I am hoping that it will make it
> into the product eventually.
> Regarding the name of the file, yes you can specify the name of the file and
> the path when setting up the subscription.
> --
> Keith
>
> "nupee" <nupee@.discussions.microsoft.com> wrote in message
> news:31E014F7-F155-433F-AEE3-A38C5C817A0E@.microsoft.com...
> name.
> individual
> have
> different
> able
> one
>
|||I am glad to hear that the suggestion was helpful!
Hmmm, I don't know if it is possible. Perhaps someone from Microsoft will
chime in with an answer.
In the mean time, send your request to sqlwish@.microsoft.com
They might not respond to your email, but they do read them!
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:CDBABC21-8E21-4F85-8DC5-2ABCE1FE9DA1@.microsoft.com...
> Once again Keith, your advised has helped me tremendously, Thanks!!..In
terms
> of the name of the file, I noticed that you can specify a filename if you
are
> saving the report to a fileshare directory but you cannot specify a
filename
> if you are sending the report via the report server email delivery in
report[vbcol=seagreen]
> manager. Is there a way around that? My report will be emailed to several
> customers and I would like to specify different filenames for each
> customer/report based on inidividual subscriptions for each customer.
> "Keith Kratochvil" wrote:
is[vbcol=seagreen]
links[vbcol=seagreen]
an[vbcol=seagreen]
into[vbcol=seagreen]
and[vbcol=seagreen]
of[vbcol=seagreen]
each[vbcol=seagreen]
this[vbcol=seagreen]
name[vbcol=seagreen]
went[vbcol=seagreen]
with[vbcol=seagreen]
a[vbcol=seagreen]
data[vbcol=seagreen]
Can[vbcol=seagreen]
been[vbcol=seagreen]
a[vbcol=seagreen]
with[vbcol=seagreen]

Reporting Services and Excel

Can someone please help me. My first posting for this question went
unanswered. Here goes...I'm trying to create a report in reporting services.
The end result will be a subscription that creates an Excel file with
contains multiple sheets (Tabs). Each sheet should corresponds to a differen
t
query or subreport. All the sheets will be derived from the same data source
and all the sheets except for one have the same column headers. Can someone
tell me how I would set this up in reporting services? I have been able to
create several reports and deployed them individual. The result is a
subscription for each report, and several individual Excel files with one
sheet. Thanks!!I did something similar with one of our reports. I created each individual
report. I then created one report with the subreports. I put each
subreport within a rectangle and I gave each subreport a different name
(right-click on the subreport | properties | general tab | name). I have
page breaks after each rectangle, and each subreport shows up on a different
tab.
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:49D866DD-D778-458B-BE8B-FF5268B96280@.microsoft.com...
> Can someone please help me. My first posting for this question went
> unanswered. Here goes...I'm trying to create a report in reporting
services.
> The end result will be a subscription that creates an Excel file with
> contains multiple sheets (Tabs). Each sheet should corresponds to a
different
> query or subreport. All the sheets will be derived from the same data
source
> and all the sheets except for one have the same column headers. Can
someone
> tell me how I would set this up in reporting services? I have been able
to
> create several reports and deployed them individual. The result is a
> subscription for each report, and several individual Excel files with one
> sheet. Thanks!!|||Thank You Keith. Your suggestions worked perfectly after several hours of
tweeking. I'm hoping you can help me customize it even further. Since each
subreport is a Tab or sheet in Excel, I need to pass the name of the
subreport to Excel so that the tabs or subreport assume the subreport name.
Currently each tab is named the default (Sheet1, Sheet2, etc.). Is this
possible? Also, once the report is deployed, I would like to set up a
subscription. Can you assign a certain filename that you want the
subscription to save the file as or does it assign it the name of the
project' Thanks!!
"Keith Kratochvil" wrote:

> I did something similar with one of our reports. I created each individua
l
> report. I then created one report with the subreports. I put each
> subreport within a rectangle and I gave each subreport a different name
> (right-click on the subreport | properties | general tab | name). I have
> page breaks after each rectangle, and each subreport shows up on a differe
nt
> tab.
> --
> Keith
>
> "nupee" <nupee@.discussions.microsoft.com> wrote in message
> news:49D866DD-D778-458B-BE8B-FF5268B96280@.microsoft.com...
> services.
> different
> source
> someone
> to
>|||Unfortunately it is not possible to controle the naming of the tabs. It is
possible to create a document map (the first worksheeet contains named links
to each tab). This is the only option for now. I had a disucssion with an
individual from Microsoft on this issue and I believe they are looking into
it. There is no official timeline for the enhancement. There is no
guarantee that they will put it in, but I am hoping that it will make it
into the product eventually.
Regarding the name of the file, yes you can specify the name of the file and
the path when setting up the subscription.
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:31E014F7-F155-433F-AEE3-A38C5C817A0E@.microsoft.com...
> Thank You Keith. Your suggestions worked perfectly after several hours of
> tweeking. I'm hoping you can help me customize it even further. Since each
> subreport is a Tab or sheet in Excel, I need to pass the name of the
> subreport to Excel so that the tabs or subreport assume the subreport
name.[vbcol=seagreen]
> Currently each tab is named the default (Sheet1, Sheet2, etc.). Is this
> possible? Also, once the report is deployed, I would like to set up a
> subscription. Can you assign a certain filename that you want the
> subscription to save the file as or does it assign it the name of the
> project' Thanks!!
> "Keith Kratochvil" wrote:
>
individual[vbcol=seagreen]
have[vbcol=seagreen]
different[vbcol=seagreen]
able[vbcol=seagreen]
one[vbcol=seagreen]|||Once again Keith, your advised has helped me tremendously, Thanks!!..In term
s
of the name of the file, I noticed that you can specify a filename if you ar
e
saving the report to a fileshare directory but you cannot specify a filename
if you are sending the report via the report server email delivery in report
manager. Is there a way around that' My report will be emailed to several
customers and I would like to specify different filenames for each
customer/report based on inidividual subscriptions for each customer.
"Keith Kratochvil" wrote:

> Unfortunately it is not possible to controle the naming of the tabs. It i
s
> possible to create a document map (the first worksheeet contains named lin
ks
> to each tab). This is the only option for now. I had a disucssion with a
n
> individual from Microsoft on this issue and I believe they are looking int
o
> it. There is no official timeline for the enhancement. There is no
> guarantee that they will put it in, but I am hoping that it will make it
> into the product eventually.
> Regarding the name of the file, yes you can specify the name of the file a
nd
> the path when setting up the subscription.
> --
> Keith
>
> "nupee" <nupee@.discussions.microsoft.com> wrote in message
> news:31E014F7-F155-433F-AEE3-A38C5C817A0E@.microsoft.com...
> name.
> individual
> have
> different
> able
> one
>|||I am glad to hear that the suggestion was helpful!
Hmmm, I don't know if it is possible. Perhaps someone from Microsoft will
chime in with an answer.
In the mean time, send your request to sqlwish@.microsoft.com
They might not respond to your email, but they do read them!
Keith
"nupee" <nupee@.discussions.microsoft.com> wrote in message
news:CDBABC21-8E21-4F85-8DC5-2ABCE1FE9DA1@.microsoft.com...
> Once again Keith, your advised has helped me tremendously, Thanks!!..In
terms
> of the name of the file, I noticed that you can specify a filename if you
are
> saving the report to a fileshare directory but you cannot specify a
filename
> if you are sending the report via the report server email delivery in
report[vbcol=seagreen]
> manager. Is there a way around that' My report will be emailed to several
> customers and I would like to specify different filenames for each
> customer/report based on inidividual subscriptions for each customer.
> "Keith Kratochvil" wrote:
>
is[vbcol=seagreen]
links[vbcol=seagreen]
an[vbcol=seagreen]
into[vbcol=seagreen]
and[vbcol=seagreen]
of[vbcol=seagreen]
each[vbcol=seagreen]
this[vbcol=seagreen]
name[vbcol=seagreen]
went[vbcol=seagreen]
with[vbcol=seagreen]
a[vbcol=seagreen]
data[vbcol=seagreen]
Can[vbcol=seagreen]
been[vbcol=seagreen]
a[vbcol=seagreen]
with[vbcol=seagreen]

Reporting Services and Directory Browsing?

If I use the URL 'http://my.rportingserver.com/ReportServer', I am presented
with a list of the directory contents, as if Directory Browsing were turned
on for the directory in IIS. At the bottom of the directory listing, is an
indication that this is a Reporting Services function:
Microsoft SQL Server Reporting Services Version 9.00.1314.00
Needless to say, Directory Browsing is turned off in InetMgr. What controls
this directory listing, and can it be turned off ?
Thanks !Report manager is the front for RS. So you will see a listing inspite of
turning off directory browsing. Basically to access all the reports it is
provided if you dont want the listing to be displayed, then remove the access
rights "Read" (I think it is browse) from the configuration.
Amarnath
"RJ" wrote:
> If I use the URL 'http://my.rportingserver.com/ReportServer', I am presented
> with a list of the directory contents, as if Directory Browsing were turned
> on for the directory in IIS. At the bottom of the directory listing, is an
> indication that this is a Reporting Services function:
> Microsoft SQL Server Reporting Services Version 9.00.1314.00
> Needless to say, Directory Browsing is turned off in InetMgr. What controls
> this directory listing, and can it be turned off ?
> Thanks !

Reporting Services and Barcodes

How do I embed a barcode in my report without using 3rd party software?
Thanks
SmittyOn Sep 14, 8:55 pm, "Willie Smith" <wsmi...@.triad.rr.com> wrote:
> How do I embed a barcode in my report without using 3rd party software?
> Thanks
> Smitty
The closest thing to what you are looking for is probably this add-in.
http://3d2f.com/programs/64-583-reporting-services-barcode-cri-download.shtml
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||If I am not mistaken you can also use one of the various Barcode fonts that
are available to do it.
--
SQL Server Developer Support Engineer
"EMartinez" wrote:
> On Sep 14, 8:55 pm, "Willie Smith" <wsmi...@.triad.rr.com> wrote:
> > How do I embed a barcode in my report without using 3rd party software?
> >
> > Thanks
> >
> > Smitty
>
> The closest thing to what you are looking for is probably this add-in.
> http://3d2f.com/programs/64-583-reporting-services-barcode-cri-download.shtml
> Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>

Reporting Services and ASP 3.0?

I currently use Crystal Reports RDC that is called from an ASP 3.0 page
(actually, the ASP page calls my custom VB COM+ code which then calls then
RDC), supplies a CustomerID as a parameter to generate a report (e.g. on one
customer) that is then exported as a PDF file and saved to the filesystem on
the server. That PDF is then available for download by end-users in my web
application (i.e. as a link). Since the move to Win2003/SQL Server 2005 one
of the Crystal components is misbehaving and I'd like to move this report
entirely to SSRS.
However, my entire web application is classic ASP 3.0 (and will not be
changing anytime soon). So what I'd like to do is call a web service with a
parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
generate the report, save the PDF file on the server, and return back to the
ASP page the path to the PDF file. Except I don't know how to do this and
cannot find any examples of using ASP 3.0 with SSRS. I can probably do some
limited ASP.NET 2.0 programming to create the web service but need help
doing that (if necessary).
Can someone please direct me to examples of how to use ASP 3.0 and SSRS
together? Or tell me if I'm going about it the wrong way (e.g. do I even
need to save the PDF on the server)?
Thanks for any help or direction.If you can make web service call from your ASP3.0 app, then you can get
report from SQL Server reporting service. SQL Server RS itself provides web
services that you can use to access reports. You can consume RS's web
services at
http://ServerName/reportserver/reportservice.asmx
With this service, you call Render() method to get a report rendered as
binary data stream (in specified format, PDF, XLS, HTML..), which you can
save to file system, or send back to client's web browser. You can also call
other methods to, say, list all available reports' name for user to choose
for downloading.
"Don Miller" <nospam@.nospam.com> wrote in message
news:uGNpsgJAIHA.4612@.TK2MSFTNGP03.phx.gbl...
>I currently use Crystal Reports RDC that is called from an ASP 3.0 page
>(actually, the ASP page calls my custom VB COM+ code which then calls then
>RDC), supplies a CustomerID as a parameter to generate a report (e.g. on
>one customer) that is then exported as a PDF file and saved to the
>filesystem on the server. That PDF is then available for download by
>end-users in my web application (i.e. as a link). Since the move to
>Win2003/SQL Server 2005 one of the Crystal components is misbehaving and
>I'd like to move this report entirely to SSRS.
> However, my entire web application is classic ASP 3.0 (and will not be
> changing anytime soon). So what I'd like to do is call a web service with
> a parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
> generate the report, save the PDF file on the server, and return back to
> the ASP page the path to the PDF file. Except I don't know how to do this
> and cannot find any examples of using ASP 3.0 with SSRS. I can probably do
> some limited ASP.NET 2.0 programming to create the web service but need
> help doing that (if necessary).
> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
> together? Or tell me if I'm going about it the wrong way (e.g. do I even
> need to save the PDF on the server)?
> Thanks for any help or direction.
>|||On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
> (actually, the ASP page calls my custom VB COM+ code which then calls then
> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on one
> customer) that is then exported as a PDF file and saved to the filesystem on
> the server. That PDF is then available for download by end-users in my web
> application (i.e. as a link). Since the move to Win2003/SQL Server 2005 one
> of the Crystal components is misbehaving and I'd like to move this report
> entirely to SSRS.
> However, my entire web application is classic ASP 3.0 (and will not be
> changing anytime soon). So what I'd like to do is call a web service with a
> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
> generate the report, save the PDF file on the server, and return back to the
> ASP page the path to the PDF file. Except I don't know how to do this and
> cannot find any examples of using ASP 3.0 with SSRS. I can probably do some
> limited ASP.NET 2.0 programming to create the web service but need help
> doing that (if necessary).
> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
> together? Or tell me if I'm going about it the wrong way (e.g. do I even
> need to save the PDF on the server)?
> Thanks for any help or direction.
You can either iFrame a connection to the Report Server and/or you can
access a report and export it to a predefined format via URL from
within ASP 3.0. Here's an example of calling a report and exporting it
to PDF and separately to Excel.
http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
Here's the URL format:
http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||Thanks for the pointer.
But how do I specify where the PDF file is created (or is that hard-coded
into the web service?)?
And how would I get back the physical path (including filename) of the PDF
file?
I'm really new at web services and I realize these questions may be naive.
Thanks again.
"EMartinez" <emartinez.pr1@.gmail.com> wrote in message
news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on
>> one
>> customer) that is then exported as a PDF file and saved to the filesystem
>> on
>> the server. That PDF is then available for download by end-users in my
>> web
>> application (i.e. as a link). Since the move to Win2003/SQL Server 2005
>> one
>> of the Crystal components is misbehaving and I'd like to move this report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not be
>> changing anytime soon). So what I'd like to do is call a web service with
>> a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> generate the report, save the PDF file on the server, and return back to
>> the
>> ASP page the path to the PDF file. Except I don't know how to do this and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> some
>> limited ASP.NET 2.0 programming to create the web service but need help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>
> You can either iFrame a connection to the Report Server and/or you can
> access a report and export it to a predefined format via URL from
> within ASP 3.0. Here's an example of calling a report and exporting it
> to PDF and separately to Excel.
> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
> Here's the URL format:
> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
> Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
>|||Unless you need to I would not go to PDF. RS can render in multiple ways but
PDF and Excel are the slowest. It is not saving the file anywhere, it is
streaming it to you.
You can integrate in two ways, web services or URL integration. If you use
URL integration (the easiest) then the user can get the full benefit of the
server including printing support and they have have html output as the
rendering type which is much much faster than pdf. In books online the
documentation is quite good (RS 2005). If you are using RS 2000 then go to
the MS site and look at the books on line there for RS 2005. URL integration
has not changed between versions. For example, here is an example URL that
sends a parameter. Your app would just assemble the URL. I strongly
recommend starting this way. Otherwise I see a very large learning curve for
you. You need to learn and understand Reporting Services. With URL
integration you can concentrate on that without worrying about webservices
from asp 3.0 website.
Here are some quick examples. I show below different rendering as well:
Excel, PDF and the default HTML.
This renders as Excel
http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=ExcelThis
renders as PDF and passes a parameter for the year
http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs:Format=PDFThis
renders as HTML (the speediest) which is the default if nothing is
specified.
http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
integrating with older technology URL integration in my mind is the way to
go.
--
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Don Miller" <nospam@.nospam.com> wrote in message
news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
> Thanks for the pointer.
> But how do I specify where the PDF file is created (or is that hard-coded
> into the web service?)?
> And how would I get back the physical path (including filename) of the PDF
> file?
> I'm really new at web services and I realize these questions may be naive.
> Thanks again.
> "EMartinez" <emartinez.pr1@.gmail.com> wrote in message
> news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
>> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on
>> one
>> customer) that is then exported as a PDF file and saved to the
>> filesystem on
>> the server. That PDF is then available for download by end-users in my
>> web
>> application (i.e. as a link). Since the move to Win2003/SQL Server 2005
>> one
>> of the Crystal components is misbehaving and I'd like to move this
>> report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not be
>> changing anytime soon). So what I'd like to do is call a web service
>> with a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> generate the report, save the PDF file on the server, and return back to
>> the
>> ASP page the path to the PDF file. Except I don't know how to do this
>> and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> some
>> limited ASP.NET 2.0 programming to create the web service but need help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>>
>> You can either iFrame a connection to the Report Server and/or you can
>> access a report and export it to a predefined format via URL from
>> within ASP 3.0. Here's an example of calling a report and exporting it
>> to PDF and separately to Excel.
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
>> Here's the URL format:
>> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
>> Hope this helps.
>> Regards,
>> Enrique Martinez
>> Sr. Software Consultant
>|||Thanks for your time putting this together and your advice.
Unfortunately, I do "need" a PDF as a file that can be downloaded and saved
to device (disk, network share, flash drive, etc.) by my customers for their
permanent and legal records (I tell them to right-click my link and "Save
Target As..." to do the save, rather than rely on Adobe Reader Disk Save
icon). This is a fundamental business requirement.
Also, the report is usually 8-10 page long and contains about a dozen
sub-reports all with different and intricate formatting that cannot be
duplicated with HTML (even if I wanted to save in that format). And it does
currently takes about 5-10secs to generate (it basically takes ALL the
information about a customer in the database and exports it).
So, if I understand you, even in the best of circumstances, the exported PDF
document is not ever saved physically to disk on the server? This might
still work as long as my customer *could* save it with Adobe Reader in the
browser.
> Otherwise I see a very large learning curve for you.
Do you know of anyone who has already climbed that mountain who I could
contract to provide the framework for accessing exported PDF files from SSRS
from ASP 3.0?
And if you don't, do you know of any other references that I could begin
climbing?
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
> Unless you need to I would not go to PDF. RS can render in multiple ways
> but PDF and Excel are the slowest. It is not saving the file anywhere, it
> is streaming it to you.
> You can integrate in two ways, web services or URL integration. If you use
> URL integration (the easiest) then the user can get the full benefit of
> the server including printing support and they have have html output as
> the rendering type which is much much faster than pdf. In books online the
> documentation is quite good (RS 2005). If you are using RS 2000 then go to
> the MS site and look at the books on line there for RS 2005. URL
> integration has not changed between versions. For example, here is an
> example URL that sends a parameter. Your app would just assemble the URL.
> I strongly recommend starting this way. Otherwise I see a very large
> learning curve for you. You need to learn and understand Reporting
> Services. With URL integration you can concentrate on that without
> worrying about webservices from asp 3.0 website.
> Here are some quick examples. I show below different rendering as well:
> Excel, PDF and the default HTML.
> This renders as Excel
> http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=ExcelThis
> renders as PDF and passes a parameter for the year
> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs:Format=PDFThis
> renders as HTML (the speediest) which is the default if nothing is
> specified.
> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
> integrating with older technology URL integration in my mind is the way to
> go.
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Don Miller" <nospam@.nospam.com> wrote in message
> news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Thanks for the pointer.
>> But how do I specify where the PDF file is created (or is that hard-coded
>> into the web service?)?
>> And how would I get back the physical path (including filename) of the
>> PDF file?
>> I'm really new at web services and I realize these questions may be
>> naive. Thanks again.
>> "EMartinez" <emartinez.pr1@.gmail.com> wrote in message
>> news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
>> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g.
>> on one
>> customer) that is then exported as a PDF file and saved to the
>> filesystem on
>> the server. That PDF is then available for download by end-users in my
>> web
>> application (i.e. as a link). Since the move to Win2003/SQL Server 2005
>> one
>> of the Crystal components is misbehaving and I'd like to move this
>> report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not be
>> changing anytime soon). So what I'd like to do is call a web service
>> with a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> generate the report, save the PDF file on the server, and return back
>> to the
>> ASP page the path to the PDF file. Except I don't know how to do this
>> and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> some
>> limited ASP.NET 2.0 programming to create the web service but need help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I
>> even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>>
>> You can either iFrame a connection to the Report Server and/or you can
>> access a report and export it to a predefined format via URL from
>> within ASP 3.0. Here's an example of calling a report and exporting it
>> to PDF and separately to Excel.
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
>> Here's the URL format:
>> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
>> Hope this helps.
>> Regards,
>> Enrique Martinez
>> Sr. Software Consultant
>>
>|||If you use URL integration you get the full Report Manager (the portal that
ships with RS) interface. This allows the user to save as in any of the
formats. So, they get very fast html for viewing and they can save as they
want when they want in a variety of formats. IF you pick PDF (which the
example showed) then what happens is the PDF is viewed in the browser. They
can save or they can export as PDF.
Nothing prevents you from using PDF as your design target. There are
definitely things you can do in PDF that you cannot do in html format.
However, when developing this means you will need to do lots of deploying
and viewing. The development environment preview is html.
You are a little stuck with how the previous environment worked. RS is
streaming the result back to the browser. The browser is the target. You can
change the rendering format but it still gets streamed to the browser
whether it is Excel, PDF, html, image whatever and then IE determines how to
handle it. PDF will get a File Download box. If you want to save to disk on
the server your app would have to take the stream and write it to disk.
You also with URL integration have control over which parts of the screen to
show, for instance the parameter section. RS comes with the ability to
export in multiple formats and to print.
My suggestion is that before you go too much further worry about how to
integrate that you first learn about RS. Create a few simple (very simple)
reports. Try creating the URL and just typing it into the browser. Do
different things by modifying the URL. Save your example URLs off. Once you
know the capabilities of doing this you can decide if you need to go more
extreme and implement web services.
Bruce Loehle-Conger
MVP SQL Server Reporting Services
"Don Miller" <nospam@.nospam.com> wrote in message
news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
> Thanks for your time putting this together and your advice.
> Unfortunately, I do "need" a PDF as a file that can be downloaded and
> saved to device (disk, network share, flash drive, etc.) by my customers
> for their permanent and legal records (I tell them to right-click my link
> and "Save Target As..." to do the save, rather than rely on Adobe Reader
> Disk Save icon). This is a fundamental business requirement.
> Also, the report is usually 8-10 page long and contains about a dozen
> sub-reports all with different and intricate formatting that cannot be
> duplicated with HTML (even if I wanted to save in that format). And it
> does currently takes about 5-10secs to generate (it basically takes ALL
> the information about a customer in the database and exports it).
> So, if I understand you, even in the best of circumstances, the exported
> PDF document is not ever saved physically to disk on the server? This
> might still work as long as my customer *could* save it with Adobe Reader
> in the browser.
>> Otherwise I see a very large learning curve for you.
> Do you know of anyone who has already climbed that mountain who I could
> contract to provide the framework for accessing exported PDF files from
> SSRS from ASP 3.0?
> And if you don't, do you know of any other references that I could begin
> climbing?
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Unless you need to I would not go to PDF. RS can render in multiple ways
>> but PDF and Excel are the slowest. It is not saving the file anywhere, it
>> is streaming it to you.
>> You can integrate in two ways, web services or URL integration. If you
>> use URL integration (the easiest) then the user can get the full benefit
>> of the server including printing support and they have have html output
>> as the rendering type which is much much faster than pdf. In books online
>> the documentation is quite good (RS 2005). If you are using RS 2000 then
>> go to the MS site and look at the books on line there for RS 2005. URL
>> integration has not changed between versions. For example, here is an
>> example URL that sends a parameter. Your app would just assemble the URL.
>> I strongly recommend starting this way. Otherwise I see a very large
>> learning curve for you. You need to learn and understand Reporting
>> Services. With URL integration you can concentrate on that without
>> worrying about webservices from asp 3.0 website.
>> Here are some quick examples. I show below different rendering as well:
>> Excel, PDF and the default HTML.
>> This renders as Excel
>> http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=ExcelThis
>> renders as PDF and passes a parameter for the year
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs:Format=PDFThis
>> renders as HTML (the speediest) which is the default if nothing is
>> specified.
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
>> integrating with older technology URL integration in my mind is the way
>> to go.
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Don Miller" <nospam@.nospam.com> wrote in message
>> news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Thanks for the pointer.
>> But how do I specify where the PDF file is created (or is that
>> hard-coded into the web service?)?
>> And how would I get back the physical path (including filename) of the
>> PDF file?
>> I'm really new at web services and I realize these questions may be
>> naive. Thanks again.
>> "EMartinez" <emartinez.pr1@.gmail.com> wrote in message
>> news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
>> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0
>> page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g.
>> on one
>> customer) that is then exported as a PDF file and saved to the
>> filesystem on
>> the server. That PDF is then available for download by end-users in my
>> web
>> application (i.e. as a link). Since the move to Win2003/SQL Server
>> 2005 one
>> of the Crystal components is misbehaving and I'd like to move this
>> report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not be
>> changing anytime soon). So what I'd like to do is call a web service
>> with a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> generate the report, save the PDF file on the server, and return back
>> to the
>> ASP page the path to the PDF file. Except I don't know how to do this
>> and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> some
>> limited ASP.NET 2.0 programming to create the web service but need
>> help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and
>> SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I
>> even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>>
>> You can either iFrame a connection to the Report Server and/or you can
>> access a report and export it to a predefined format via URL from
>> within ASP 3.0. Here's an example of calling a report and exporting it
>> to PDF and separately to Excel.
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
>> Here's the URL format:
>> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
>> Hope this helps.
>> Regards,
>> Enrique Martinez
>> Sr. Software Consultant
>>
>>
>|||Thanks. I certainly am stuck in the mindset I've had and used successfully
for the last seven years. Time to change maybe.
Although saving the report as PDF to a device is optional (but necessary),
most of my customers click on the link to the PDF file (on the server) on my
web page and it loads into Adobe Reader plug-in and they simply print out
the PDF document and save *that* paper as their permanent record. So, a
"file download" box appearing first would not be a good thing for most
customers (but I assume there will be an Open instead option with
configuration of the response headers?).
I actually do NOT want to expose my customers to the full Report Manager at
all or give them options to save the report in any other format. They just
want one thing and many of my end-users would be overwhelmed by anything
other than "click here" to view the report. These are not business people
and many only have high-school diplomas and "variety" is not good.
Nevertheless, I'll take your seasoned advice and play around a bit. But with
this and all the hacking that has to be done (no Report Headers/Footers
without tricks, hidden parameters, no Fields in Page Headers, no tabs, no
document size editing, etc.) to recreate a Crystal Reports report, I may be
going right back to CR. I hope not though.
"Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
news:uN2MBBSAIHA.4444@.TK2MSFTNGP03.phx.gbl...
> If you use URL integration you get the full Report Manager (the portal
> that ships with RS) interface. This allows the user to save as in any of
> the formats. So, they get very fast html for viewing and they can save as
> they want when they want in a variety of formats. IF you pick PDF (which
> the example showed) then what happens is the PDF is viewed in the browser.
> They can save or they can export as PDF.
> Nothing prevents you from using PDF as your design target. There are
> definitely things you can do in PDF that you cannot do in html format.
> However, when developing this means you will need to do lots of deploying
> and viewing. The development environment preview is html.
> You are a little stuck with how the previous environment worked. RS is
> streaming the result back to the browser. The browser is the target. You
> can change the rendering format but it still gets streamed to the browser
> whether it is Excel, PDF, html, image whatever and then IE determines how
> to handle it. PDF will get a File Download box. If you want to save to
> disk on the server your app would have to take the stream and write it to
> disk.
> You also with URL integration have control over which parts of the screen
> to show, for instance the parameter section. RS comes with the ability to
> export in multiple formats and to print.
> My suggestion is that before you go too much further worry about how to
> integrate that you first learn about RS. Create a few simple (very simple)
> reports. Try creating the URL and just typing it into the browser. Do
> different things by modifying the URL. Save your example URLs off. Once
> you know the capabilities of doing this you can decide if you need to go
> more extreme and implement web services.
>
> --
> Bruce Loehle-Conger
> MVP SQL Server Reporting Services
>
> "Don Miller" <nospam@.nospam.com> wrote in message
> news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
>> Thanks for your time putting this together and your advice.
>> Unfortunately, I do "need" a PDF as a file that can be downloaded and
>> saved to device (disk, network share, flash drive, etc.) by my customers
>> for their permanent and legal records (I tell them to right-click my link
>> and "Save Target As..." to do the save, rather than rely on Adobe Reader
>> Disk Save icon). This is a fundamental business requirement.
>> Also, the report is usually 8-10 page long and contains about a dozen
>> sub-reports all with different and intricate formatting that cannot be
>> duplicated with HTML (even if I wanted to save in that format). And it
>> does currently takes about 5-10secs to generate (it basically takes ALL
>> the information about a customer in the database and exports it).
>> So, if I understand you, even in the best of circumstances, the exported
>> PDF document is not ever saved physically to disk on the server? This
>> might still work as long as my customer *could* save it with Adobe Reader
>> in the browser.
>> Otherwise I see a very large learning curve for you.
>> Do you know of anyone who has already climbed that mountain who I could
>> contract to provide the framework for accessing exported PDF files from
>> SSRS from ASP 3.0?
>> And if you don't, do you know of any other references that I could begin
>> climbing?
>>
>> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Unless you need to I would not go to PDF. RS can render in multiple ways
>> but PDF and Excel are the slowest. It is not saving the file anywhere,
>> it is streaming it to you.
>> You can integrate in two ways, web services or URL integration. If you
>> use URL integration (the easiest) then the user can get the full benefit
>> of the server including printing support and they have have html output
>> as the rendering type which is much much faster than pdf. In books
>> online the documentation is quite good (RS 2005). If you are using RS
>> 2000 then go to the MS site and look at the books on line there for RS
>> 2005. URL integration has not changed between versions. For example,
>> here is an example URL that sends a parameter. Your app would just
>> assemble the URL. I strongly recommend starting this way. Otherwise I
>> see a very large learning curve for you. You need to learn and
>> understand Reporting Services. With URL integration you can concentrate
>> on that without worrying about webservices from asp 3.0 website.
>> Here are some quick examples. I show below different rendering as well:
>> Excel, PDF and the default HTML.
>> This renders as Excel
>> http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=ExcelThis
>> renders as PDF and passes a parameter for the year
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs:Format=PDFThis
>> renders as HTML (the speediest) which is the default if nothing is
>> specified.
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
>> integrating with older technology URL integration in my mind is the way
>> to go.
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Don Miller" <nospam@.nospam.com> wrote in message
>> news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Thanks for the pointer.
>> But how do I specify where the PDF file is created (or is that
>> hard-coded into the web service?)?
>> And how would I get back the physical path (including filename) of the
>> PDF file?
>> I'm really new at web services and I realize these questions may be
>> naive. Thanks again.
>> "EMartinez" <emartinez.pr1@.gmail.com> wrote in message
>> news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
>> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0
>> page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g.
>> on one
>> customer) that is then exported as a PDF file and saved to the
>> filesystem on
>> the server. That PDF is then available for download by end-users in
>> my web
>> application (i.e. as a link). Since the move to Win2003/SQL Server
>> 2005 one
>> of the Crystal components is misbehaving and I'd like to move this
>> report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not
>> be
>> changing anytime soon). So what I'd like to do is call a web service
>> with a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web
>> service
>> generate the report, save the PDF file on the server, and return back
>> to the
>> ASP page the path to the PDF file. Except I don't know how to do this
>> and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably
>> do some
>> limited ASP.NET 2.0 programming to create the web service but need
>> help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and
>> SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I
>> even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>>
>> You can either iFrame a connection to the Report Server and/or you can
>> access a report and export it to a predefined format via URL from
>> within ASP 3.0. Here's an example of calling a report and exporting it
>> to PDF and separately to Excel.
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
>> Here's the URL format:
>> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
>> Hope this helps.
>> Regards,
>> Enrique Martinez
>> Sr. Software Consultant
>>
>>
>>
>|||After very brief playing, with the complete URL, this may indeed work (and
save me the trouble of deleting PDFs off the server every night - with a BAT
file ;) BUT I need to have the default filename to be saved to be specific
when folks save the exported file (see other Topic I've posted).
It's always something ;)
"Don Miller" <nospam@.nospam.com> wrote in message
news:u6ZWUQSAIHA.4592@.TK2MSFTNGP03.phx.gbl...
> Thanks. I certainly am stuck in the mindset I've had and used successfully
> for the last seven years. Time to change maybe.
> Although saving the report as PDF to a device is optional (but necessary),
> most of my customers click on the link to the PDF file (on the server) on
> my web page and it loads into Adobe Reader plug-in and they simply print
> out the PDF document and save *that* paper as their permanent record. So,
> a "file download" box appearing first would not be a good thing for most
> customers (but I assume there will be an Open instead option with
> configuration of the response headers?).
> I actually do NOT want to expose my customers to the full Report Manager
> at all or give them options to save the report in any other format. They
> just want one thing and many of my end-users would be overwhelmed by
> anything other than "click here" to view the report. These are not
> business people and many only have high-school diplomas and "variety" is
> not good.
> Nevertheless, I'll take your seasoned advice and play around a bit. But
> with this and all the hacking that has to be done (no Report
> Headers/Footers without tricks, hidden parameters, no Fields in Page
> Headers, no tabs, no document size editing, etc.) to recreate a Crystal
> Reports report, I may be going right back to CR. I hope not though.
>
> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
> news:uN2MBBSAIHA.4444@.TK2MSFTNGP03.phx.gbl...
>> If you use URL integration you get the full Report Manager (the portal
>> that ships with RS) interface. This allows the user to save as in any of
>> the formats. So, they get very fast html for viewing and they can save as
>> they want when they want in a variety of formats. IF you pick PDF (which
>> the example showed) then what happens is the PDF is viewed in the
>> browser. They can save or they can export as PDF.
>> Nothing prevents you from using PDF as your design target. There are
>> definitely things you can do in PDF that you cannot do in html format.
>> However, when developing this means you will need to do lots of deploying
>> and viewing. The development environment preview is html.
>> You are a little stuck with how the previous environment worked. RS is
>> streaming the result back to the browser. The browser is the target. You
>> can change the rendering format but it still gets streamed to the browser
>> whether it is Excel, PDF, html, image whatever and then IE determines how
>> to handle it. PDF will get a File Download box. If you want to save to
>> disk on the server your app would have to take the stream and write it to
>> disk.
>> You also with URL integration have control over which parts of the screen
>> to show, for instance the parameter section. RS comes with the ability to
>> export in multiple formats and to print.
>> My suggestion is that before you go too much further worry about how to
>> integrate that you first learn about RS. Create a few simple (very
>> simple) reports. Try creating the URL and just typing it into the
>> browser. Do different things by modifying the URL. Save your example URLs
>> off. Once you know the capabilities of doing this you can decide if you
>> need to go more extreme and implement web services.
>>
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Don Miller" <nospam@.nospam.com> wrote in message
>> news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
>> Thanks for your time putting this together and your advice.
>> Unfortunately, I do "need" a PDF as a file that can be downloaded and
>> saved to device (disk, network share, flash drive, etc.) by my customers
>> for their permanent and legal records (I tell them to right-click my
>> link and "Save Target As..." to do the save, rather than rely on Adobe
>> Reader Disk Save icon). This is a fundamental business requirement.
>> Also, the report is usually 8-10 page long and contains about a dozen
>> sub-reports all with different and intricate formatting that cannot be
>> duplicated with HTML (even if I wanted to save in that format). And it
>> does currently takes about 5-10secs to generate (it basically takes ALL
>> the information about a customer in the database and exports it).
>> So, if I understand you, even in the best of circumstances, the exported
>> PDF document is not ever saved physically to disk on the server? This
>> might still work as long as my customer *could* save it with Adobe
>> Reader in the browser.
>> Otherwise I see a very large learning curve for you.
>> Do you know of anyone who has already climbed that mountain who I could
>> contract to provide the framework for accessing exported PDF files from
>> SSRS from ASP 3.0?
>> And if you don't, do you know of any other references that I could begin
>> climbing?
>>
>> "Bruce L-C [MVP]" <bruce_lcNOSPAM@.hotmail.com> wrote in message
>> news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Unless you need to I would not go to PDF. RS can render in multiple
>> ways but PDF and Excel are the slowest. It is not saving the file
>> anywhere, it is streaming it to you.
>> You can integrate in two ways, web services or URL integration. If you
>> use URL integration (the easiest) then the user can get the full
>> benefit of the server including printing support and they have have
>> html output as the rendering type which is much much faster than pdf.
>> In books online the documentation is quite good (RS 2005). If you are
>> using RS 2000 then go to the MS site and look at the books on line
>> there for RS 2005. URL integration has not changed between versions.
>> For example, here is an example URL that sends a parameter. Your app
>> would just assemble the URL. I strongly recommend starting this way.
>> Otherwise I see a very large learning curve for you. You need to learn
>> and understand Reporting Services. With URL integration you can
>> concentrate on that without worrying about webservices from asp 3.0
>> website.
>> Here are some quick examples. I show below different rendering as well:
>> Excel, PDF and the default HTML.
>> This renders as Excel
>> http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=ExcelThis
>> renders as PDF and passes a parameter for the year
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs:Format=PDFThis
>> renders as HTML (the speediest) which is the default if nothing is
>> specified.
>> http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
>> integrating with older technology URL integration in my mind is the way
>> to go.
>> --
>> Bruce Loehle-Conger
>> MVP SQL Server Reporting Services
>>
>> "Don Miller" <nospam@.nospam.com> wrote in message
>> news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
>> Thanks for the pointer.
>> But how do I specify where the PDF file is created (or is that
>> hard-coded into the web service?)?
>> And how would I get back the physical path (including filename) of the
>> PDF file?
>> I'm really new at web services and I realize these questions may be
>> naive. Thanks again.
>> "EMartinez" <emartinez.pr1@.gmail.com> wrote in message
>> news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
>> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
>>> I currently use Crystal Reports RDC that is called from an ASP 3.0
>>> page
>>> (actually, the ASP page calls my custom VB COM+ code which then
>>> calls then
>>> RDC), supplies a CustomerID as a parameter to generate a report
>>> (e.g. on one
>>> customer) that is then exported as a PDF file and saved to the
>>> filesystem on
>>> the server. That PDF is then available for download by end-users in
>>> my web
>>> application (i.e. as a link). Since the move to Win2003/SQL Server
>>> 2005 one
>>> of the Crystal components is misbehaving and I'd like to move this
>>> report
>>> entirely to SSRS.
>>>
>>> However, my entire web application is classic ASP 3.0 (and will not
>>> be
>>> changing anytime soon). So what I'd like to do is call a web service
>>> with a
>>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web
>>> service
>>> generate the report, save the PDF file on the server, and return
>>> back to the
>>> ASP page the path to the PDF file. Except I don't know how to do
>>> this and
>>> cannot find any examples of using ASP 3.0 with SSRS. I can probably
>>> do some
>>> limited ASP.NET 2.0 programming to create the web service but need
>>> help
>>> doing that (if necessary).
>>>
>>> Can someone please direct me to examples of how to use ASP 3.0 and
>>> SSRS
>>> together? Or tell me if I'm going about it the wrong way (e.g. do I
>>> even
>>> need to save the PDF on the server)?
>>>
>>> Thanks for any help or direction.
>>
>> You can either iFrame a connection to the Report Server and/or you
>> can
>> access a report and export it to a predefined format via URL from
>> within ASP 3.0. Here's an example of calling a report and exporting
>> it
>> to PDF and separately to Excel.
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=PDF
>> http://SomeServerName/reportserver?/SomeReportFolder/SomeReportName&rs:Command=Render&Param1=ParamValue&rs:Format=Excel
>> Here's the URL format:
>> http://<ServerName>/reportserver?/<Directory>/<ReportName>&rs:Command=Render&<ParameterName>=<ParameterValue>&rs:Format=<PDF/CSV/XML/Excel/MHTML>
>> Hope this helps.
>> Regards,
>> Enrique Martinez
>> Sr. Software Consultant
>>
>>
>>
>>
>|||On Sep 27, 12:12 pm, "Don Miller" <nos...@.nospam.com> wrote:
> After very brief playing, with the complete URL, this may indeed work (and
> save me the trouble of deleting PDFs off the server every night - with a =BAT
> file ;) BUT I need to have the default filename to be saved to be specific
> when folks save the exported file (see other Topic I've posted).
> It's always something ;)
> "Don Miller" <nos...@.nospam.com> wrote in message
> news:u6ZWUQSAIHA.4592@.TK2MSFTNGP03.phx.gbl...
> > Thanks. I certainly am stuck in the mindset I've had and used successfu=lly
> > for the last seven years. Time to change maybe.
> > Although saving the report as PDF to a device is optional (but necessar=y),
> > most of my customers click on the link to the PDF file (on the server) =on
> > my web page and it loads into Adobe Reader plug-in and they simply print
> > out the PDF document and save *that* paper as their permanent record. S=o,
> > a "file download" box appearing first would not be a good thing for most
> > customers (but I assume there will be an Open instead option with
> > configuration of the response headers?).
> > I actually do NOT want to expose my customers to the full Report Manager
> > at all or give them options to save the report in any other format. They
> > just want one thing and many of my end-users would be overwhelmed by
> > anything other than "click here" to view the report. These are not
> > business people and many only have high-school diplomas and "variety" is
> > not good.
> > Nevertheless, I'll take your seasoned advice and play around a bit. But
> > with this and all the hacking that has to be done (no Report
> > Headers/Footers without tricks, hidden parameters, no Fields in Page
> > Headers, no tabs, no document size editing, etc.) to recreate a Crystal
> > Reports report, I may be going right back to CR. I hope not though.
> > "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> >news:uN2MBBSAIHA.4444@.TK2MSFTNGP03.phx.gbl...
> >> If you use URL integration you get the full Report Manager (the portal
> >> that ships with RS) interface. This allows the user to save as in any =of
> >> the formats. So, they get very fast html for viewing and they can save= as
> >> they want when they want in a variety of formats. IF you pick PDF (whi=ch
> >> the example showed) then what happens is the PDF is viewed in the
> >> browser. They can save or they can export as PDF.
> >> Nothing prevents you from using PDF as your design target. There are
> >> definitely things you can do in PDF that you cannot do in html format.
> >> However, when developing this means you will need to do lots of deploy=ing
> >> and viewing. The development environment preview is html.
> >> You are a little stuck with how the previous environment worked. RS is
> >> streaming the result back to the browser. The browser is the target. Y=ou
> >> can change the rendering format but it still gets streamed to the brow=ser
> >> whether it is Excel, PDF, html, image whatever and then IE determines =how
> >> to handle it. PDF will get a File Download box. If you want to save to
> >> disk on the server your app would have to take the stream and write it= to
> >> disk.
> >> You also with URL integration have control over which parts of the scr=een
> >> to show, for instance the parameter section. RS comes with the ability= to
> >> export in multiple formats and to print.
> >> My suggestion is that before you go too much further worry about how to
> >> integrate that you first learn about RS. Create a few simple (very
> >> simple) reports. Try creating the URL and just typing it into the
> >> browser. Do different things by modifying the URL. Save your example U=RLs
> >> off. Once you know the capabilities of doing this you can decide if you
> >> need to go more extreme and implement web services.
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >> "Don Miller" <nos...@.nospam.com> wrote in message
> >>news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
> >> Thanks for your time putting this together and your advice.
> >> Unfortunately, I do "need" a PDF as a file that can be downloaded and
> >> saved to device (disk, network share, flash drive, etc.) by my custom=ers
> >> for their permanent and legal records (I tell them to right-click my
> >> link and "Save Target As..." to do the save, rather than rely on Adobe
> >> Reader Disk Save icon). This is a fundamental business requirement.
> >> Also, the report is usually 8-10 page long and contains about a dozen
> >> sub-reports all with different and intricate formatting that cannot be
> >> duplicated with HTML (even if I wanted to save in that format). And it
> >> does currently takes about 5-10secs to generate (it basically takes A=LL
> >> the information about a customer in the database and exports it).
> >> So, if I understand you, even in the best of circumstances, the expor=ted
> >> PDF document is not ever saved physically to disk on the server? This
> >> might still work as long as my customer *could* save it with Adobe
> >> Reader in the browser.
> >> Otherwise I see a very large learning curve for you.
> >> Do you know of anyone who has already climbed that mountain who I cou=ld
> >> contract to provide the framework for accessing exported PDF files fr=om
> >> SSRS from ASP 3.0?
> >> And if you don't, do you know of any other references that I could be=gin
> >> climbing?
> >> "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> >>news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
> >> Unless you need to I would not go to PDF. RS can render in multiple
> >> ways but PDF and Excel are the slowest. It is not saving the file
> >> anywhere, it is streaming it to you.
> >> You can integrate in two ways, web services or URL integration. If y=ou
> >> use URL integration (the easiest) then the user can get the full
> >> benefit of the server including printing support and they have have
> >> html output as the rendering type which is much much faster than pdf.
> >> In books online the documentation is quite good (RS 2005). If you are
> >> using RS 2000 then go to the MS site and look at the books on line
> >> there for RS 2005. URL integration has not changed between versions.
> >> For example, here is an example URL that sends a parameter. Your app
> >> would just assemble the URL. I strongly recommend starting this way.
> >> Otherwise I see a very large learning curve for you. You need to lea=rn
> >> and understand Reporting Services. With URL integration you can
> >> concentrate on that without worrying about webservices from asp 3.0
> >> website.
> >> Here are some quick examples. I show below different rendering as we=ll:
> >> Excel, PDF and the default HTML.
> >> This renders as Excel
> >>http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=3D=
Ex...
> >> renders as PDF and passes a parameter for the year
> >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=3D2006&=
rs...
> >> renders as HTML (the speediest) which is the default if nothing is
> >> specified.
> >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=3D2006W=
hen
> >> integrating with older technology URL integration in my mind is the =way
> >> to go.
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >> "Don Miller" <nos...@.nospam.com> wrote in message
> >>news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
> >> Thanks for the pointer.
> >> But how do I specify where the PDF file is created (or is that
> >> hard-coded into the web service?)?
> >> And how would I get back the physical path (including filename) of =the
> >> PDF file?
> >> I'm really new at web services and I realize these questions may be
> >> naive. Thanks again.
> >> "EMartinez" <emartinez...@.gmail.com> wrote in message
> >>news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
> >> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
> >>> I currently use Crystal Reports RDC that is called from an ASP 3.0
> >>> page
> >>> (actually, the ASP page calls my custom VB COM+ code which then
> >>> calls then
> >>> RDC), supplies a CustomerID as a parameter to generate a report
> >>> (e.g. on one
> >>> customer) that is then exported as a PDF file and saved to the
> >>> filesystem on
> >>> the server. That PDF is then available for download by end-users =in
> >>> my web
> >>> application (i.e. as a link). Since the move to Win2003/SQL Server
> >>> 2005 one
> >>> of the Crystal components is misbehaving and I'd like to move this
> >>> report
> >>> entirely to SSRS.
> >>> However, my entire web application is classic ASP 3.0 (and will n=ot
> >>> be
> >>> changing anytime soon). So what I'd like to do is call a web serv=ice
> >>> with a
> >>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web
> >>> service
> >>> generate the report, save the PDF file on the server, and return
> >>> back to the
> >>> ASP page the path to the PDF file. Except I don't know how to do
> >>> this and
> >>> cannot find any examples of using ASP 3.0 with SSRS. I can probab=ly
> >>> do some
> >>> limited ASP.NET 2.0 programming to create the web service but need
> >>> help
> >>> doing that (if necessary).
> >>> Can someone please direct me to examples of how to use ASP 3.0 and
> >>> SSRS
> >>> together? Or tell me if I'm going about it the wrong way (e.g. do= I
> >>> even
> >>> need to save the PDF on the server)?
> >>> Thanks for any help or direction.
> >> You can either iFrame a connection to the Report Server and/or you
> >> can
> >> access a report and export it to a predefined format via URL from
> >> within ASP 3.0. Here's an example of calling a report and exporting
> >> it
> >> to PDF and separately to Excel.
> ...
> read more =BB
Another option, if you can utilize a web service in ASP.NET (which you
eluded to in the beginning) is to use the URL method that both I and
Bruce mentioned and then use a combination of StreamReader and
StreamWriter in ASP.NET (http://msdn2.microsoft.com/en-us/library/
aa903247(VS.71).aspx ) to return the stream from the URL call (via
StreamReader) and then write the file physically out to disk (via
StreamWriter). The report file normally defaults to the 'report name'
+ 'extension of export option selected'; however, you can control the
filename after the fact as well using File.Move in ASP.NET (https://
msdn2.microsoft.com/en-us/library/system.io.file.move.aspx ). Of
course, you would need to know how to reference the Web Service via
SOAP. Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||Yes, I would like to use the URL method, but what you suggest (and how to do
it) is probably part of the steep learning curve I have not yet approached.
It's probably not so important to me anymore that I continue to write the
PDF to the server as long as the end-user can save it on their local machine
(which they can just using the URL method).
Again, it is still difficult to use SOAP with classic ASP 3.0 (there is
apparently a MS COM object that will no longer be supported in 2008 that
helps) and I'm probably out of my space (mind) to handcraft all of that in
ASP 3.0 to use the Reporting Service API.
Security is a major concern (that I've created another post in this
newsgroup) and I cannot make heads or tails about the issue in BOL.
I appreciate your assistance and expertise.
"EMartinez" <emartinez.pr1@.gmail.com> wrote in message
news:1190942221.341537.319500@.n39g2000hsh.googlegroups.com...
On Sep 27, 12:12 pm, "Don Miller" <nos...@.nospam.com> wrote:
> After very brief playing, with the complete URL, this may indeed work (and
> save me the trouble of deleting PDFs off the server every night - with a
> BAT
> file ;) BUT I need to have the default filename to be saved to be specific
> when folks save the exported file (see other Topic I've posted).
> It's always something ;)
> "Don Miller" <nos...@.nospam.com> wrote in message
> news:u6ZWUQSAIHA.4592@.TK2MSFTNGP03.phx.gbl...
> > Thanks. I certainly am stuck in the mindset I've had and used
> > successfully
> > for the last seven years. Time to change maybe.
> > Although saving the report as PDF to a device is optional (but
> > necessary),
> > most of my customers click on the link to the PDF file (on the server)
> > on
> > my web page and it loads into Adobe Reader plug-in and they simply print
> > out the PDF document and save *that* paper as their permanent record.
> > So,
> > a "file download" box appearing first would not be a good thing for most
> > customers (but I assume there will be an Open instead option with
> > configuration of the response headers?).
> > I actually do NOT want to expose my customers to the full Report Manager
> > at all or give them options to save the report in any other format. They
> > just want one thing and many of my end-users would be overwhelmed by
> > anything other than "click here" to view the report. These are not
> > business people and many only have high-school diplomas and "variety" is
> > not good.
> > Nevertheless, I'll take your seasoned advice and play around a bit. But
> > with this and all the hacking that has to be done (no Report
> > Headers/Footers without tricks, hidden parameters, no Fields in Page
> > Headers, no tabs, no document size editing, etc.) to recreate a Crystal
> > Reports report, I may be going right back to CR. I hope not though.
> > "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> >news:uN2MBBSAIHA.4444@.TK2MSFTNGP03.phx.gbl...
> >> If you use URL integration you get the full Report Manager (the portal
> >> that ships with RS) interface. This allows the user to save as in any
> >> of
> >> the formats. So, they get very fast html for viewing and they can save
> >> as
> >> they want when they want in a variety of formats. IF you pick PDF
> >> (which
> >> the example showed) then what happens is the PDF is viewed in the
> >> browser. They can save or they can export as PDF.
> >> Nothing prevents you from using PDF as your design target. There are
> >> definitely things you can do in PDF that you cannot do in html format.
> >> However, when developing this means you will need to do lots of
> >> deploying
> >> and viewing. The development environment preview is html.
> >> You are a little stuck with how the previous environment worked. RS is
> >> streaming the result back to the browser. The browser is the target.
> >> You
> >> can change the rendering format but it still gets streamed to the
> >> browser
> >> whether it is Excel, PDF, html, image whatever and then IE determines
> >> how
> >> to handle it. PDF will get a File Download box. If you want to save to
> >> disk on the server your app would have to take the stream and write it
> >> to
> >> disk.
> >> You also with URL integration have control over which parts of the
> >> screen
> >> to show, for instance the parameter section. RS comes with the ability
> >> to
> >> export in multiple formats and to print.
> >> My suggestion is that before you go too much further worry about how to
> >> integrate that you first learn about RS. Create a few simple (very
> >> simple) reports. Try creating the URL and just typing it into the
> >> browser. Do different things by modifying the URL. Save your example
> >> URLs
> >> off. Once you know the capabilities of doing this you can decide if you
> >> need to go more extreme and implement web services.
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >> "Don Miller" <nos...@.nospam.com> wrote in message
> >>news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
> >> Thanks for your time putting this together and your advice.
> >> Unfortunately, I do "need" a PDF as a file that can be downloaded and
> >> saved to device (disk, network share, flash drive, etc.) by my
> >> customers
> >> for their permanent and legal records (I tell them to right-click my
> >> link and "Save Target As..." to do the save, rather than rely on Adobe
> >> Reader Disk Save icon). This is a fundamental business requirement.
> >> Also, the report is usually 8-10 page long and contains about a dozen
> >> sub-reports all with different and intricate formatting that cannot be
> >> duplicated with HTML (even if I wanted to save in that format). And it
> >> does currently takes about 5-10secs to generate (it basically takes
> >> ALL
> >> the information about a customer in the database and exports it).
> >> So, if I understand you, even in the best of circumstances, the
> >> exported
> >> PDF document is not ever saved physically to disk on the server? This
> >> might still work as long as my customer *could* save it with Adobe
> >> Reader in the browser.
> >> Otherwise I see a very large learning curve for you.
> >> Do you know of anyone who has already climbed that mountain who I
> >> could
> >> contract to provide the framework for accessing exported PDF files
> >> from
> >> SSRS from ASP 3.0?
> >> And if you don't, do you know of any other references that I could
> >> begin
> >> climbing?
> >> "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> >>news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
> >> Unless you need to I would not go to PDF. RS can render in multiple
> >> ways but PDF and Excel are the slowest. It is not saving the file
> >> anywhere, it is streaming it to you.
> >> You can integrate in two ways, web services or URL integration. If
> >> you
> >> use URL integration (the easiest) then the user can get the full
> >> benefit of the server including printing support and they have have
> >> html output as the rendering type which is much much faster than pdf.
> >> In books online the documentation is quite good (RS 2005). If you are
> >> using RS 2000 then go to the MS site and look at the books on line
> >> there for RS 2005. URL integration has not changed between versions.
> >> For example, here is an example URL that sends a parameter. Your app
> >> would just assemble the URL. I strongly recommend starting this way.
> >> Otherwise I see a very large learning curve for you. You need to
> >> learn
> >> and understand Reporting Services. With URL integration you can
> >> concentrate on that without worrying about webservices from asp 3.0
> >> website.
> >> Here are some quick examples. I show below different rendering as
> >> well:
> >> Excel, PDF and the default HTML.
> >> This renders as Excel
> >>http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=Ex...
> >> renders as PDF and passes a parameter for the year
> >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006&rs...
> >> renders as HTML (the speediest) which is the default if nothing is
> >> specified.
> >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=2006When
> >> integrating with older technology URL integration in my mind is the
> >> way
> >> to go.
> >> --
> >> Bruce Loehle-Conger
> >> MVP SQL Server Reporting Services
> >> "Don Miller" <nos...@.nospam.com> wrote in message
> >>news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
> >> Thanks for the pointer.
> >> But how do I specify where the PDF file is created (or is that
> >> hard-coded into the web service?)?
> >> And how would I get back the physical path (including filename) of
> >> the
> >> PDF file?
> >> I'm really new at web services and I realize these questions may be
> >> naive. Thanks again.
> >> "EMartinez" <emartinez...@.gmail.com> wrote in message
> >>news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
> >> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
> >>> I currently use Crystal Reports RDC that is called from an ASP 3.0
> >>> page
> >>> (actually, the ASP page calls my custom VB COM+ code which then
> >>> calls then
> >>> RDC), supplies a CustomerID as a parameter to generate a report
> >>> (e.g. on one
> >>> customer) that is then exported as a PDF file and saved to the
> >>> filesystem on
> >>> the server. That PDF is then available for download by end-users
> >>> in
> >>> my web
> >>> application (i.e. as a link). Since the move to Win2003/SQL Server
> >>> 2005 one
> >>> of the Crystal components is misbehaving and I'd like to move this
> >>> report
> >>> entirely to SSRS.
> >>> However, my entire web application is classic ASP 3.0 (and will
> >>> not
> >>> be
> >>> changing anytime soon). So what I'd like to do is call a web
> >>> service
> >>> with a
> >>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web
> >>> service
> >>> generate the report, save the PDF file on the server, and return
> >>> back to the
> >>> ASP page the path to the PDF file. Except I don't know how to do
> >>> this and
> >>> cannot find any examples of using ASP 3.0 with SSRS. I can
> >>> probably
> >>> do some
> >>> limited ASP.NET 2.0 programming to create the web service but need
> >>> help
> >>> doing that (if necessary).
> >>> Can someone please direct me to examples of how to use ASP 3.0 and
> >>> SSRS
> >>> together? Or tell me if I'm going about it the wrong way (e.g. do
> >>> I
> >>> even
> >>> need to save the PDF on the server)?
> >>> Thanks for any help or direction.
> >> You can either iFrame a connection to the Report Server and/or you
> >> can
> >> access a report and export it to a predefined format via URL from
> >> within ASP 3.0. Here's an example of calling a report and exporting
> >> it
> >> to PDF and separately to Excel.
> ...
> read more »
Another option, if you can utilize a web service in ASP.NET (which you
eluded to in the beginning) is to use the URL method that both I and
Bruce mentioned and then use a combination of StreamReader and
StreamWriter in ASP.NET (http://msdn2.microsoft.com/en-us/library/
aa903247(VS.71).aspx ) to return the stream from the URL call (via
StreamReader) and then write the file physically out to disk (via
StreamWriter). The report file normally defaults to the 'report name'
+ 'extension of export option selected'; however, you can control the
filename after the fact as well using File.Move in ASP.NET (https://
msdn2.microsoft.com/en-us/library/system.io.file.move.aspx ). Of
course, you would need to know how to reference the Web Service via
SOAP. Hope this helps.
Regards,
Enrique Martinez
Sr. Software Consultant|||On Sep 28, 7:37 am, "Don Miller" <nos...@.nospam.com> wrote:
> Yes, I would like to use the URL method, but what you suggest (and how to= do
> it) is probably part of the steep learning curve I have not yet approache=d=2E
> It's probably not so important to me anymore that I continue to write the
> PDF to the server as long as the end-user can save it on their local mach=ine
> (which they can just using the URL method).
> Again, it is still difficult to use SOAP with classic ASP 3.0 (there is
> apparently a MS COM object that will no longer be supported in 2008 that
> helps) and I'm probably out of my space (mind) to handcraft all of that in
> ASP 3.0 to use the Reporting Service API.
> Security is a major concern (that I've created another post in this
> newsgroup) and I cannot make heads or tails about the issue in BOL.
> I appreciate your assistance and expertise.
> "EMartinez" <emartinez...@.gmail.com> wrote in message
> news:1190942221.341537.319500@.n39g2000hsh.googlegroups.com...
> On Sep 27, 12:12 pm, "Don Miller" <nos...@.nospam.com> wrote:
> > After very brief playing, with the complete URL, this may indeed work (=and
> > save me the trouble of deleting PDFs off the server every night - with a
> > BAT
> > file ;) BUT I need to have the default filename to be saved to be speci=fic
> > when folks save the exported file (see other Topic I've posted).
> > It's always something ;)
> > "Don Miller" <nos...@.nospam.com> wrote in message
> >news:u6ZWUQSAIHA.4592@.TK2MSFTNGP03.phx.gbl...
> > > Thanks. I certainly am stuck in the mindset I've had and used
> > > successfully
> > > for the last seven years. Time to change maybe.
> > > Although saving the report as PDF to a device is optional (but
> > > necessary),
> > > most of my customers click on the link to the PDF file (on the server)
> > > on
> > > my web page and it loads into Adobe Reader plug-in and they simply pr=int
> > > out the PDF document and save *that* paper as their permanent record.
> > > So,
> > > a "file download" box appearing first would not be a good thing for m=ost
> > > customers (but I assume there will be an Open instead option with
> > > configuration of the response headers?).
> > > I actually do NOT want to expose my customers to the full Report Mana=ger
> > > at all or give them options to save the report in any other format. T=hey
> > > just want one thing and many of my end-users would be overwhelmed by
> > > anything other than "click here" to view the report. These are not
> > > business people and many only have high-school diplomas and "variety"= is
> > > not good.
> > > Nevertheless, I'll take your seasoned advice and play around a bit. B=ut
> > > with this and all the hacking that has to be done (no Report
> > > Headers/Footers without tricks, hidden parameters, no Fields in Page
> > > Headers, no tabs, no document size editing, etc.) to recreate a Cryst=al
> > > Reports report, I may be going right back to CR. I hope not though.
> > > "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> > >news:uN2MBBSAIHA.4444@.TK2MSFTNGP03.phx.gbl...
> > >> If you use URL integration you get the full Report Manager (the port=al
> > >> that ships with RS) interface. This allows the user to save as in any
> > >> of
> > >> the formats. So, they get very fast html for viewing and they can sa=ve
> > >> as
> > >> they want when they want in a variety of formats. IF you pick PDF
> > >> (which
> > >> the example showed) then what happens is the PDF is viewed in the
> > >> browser. They can save or they can export as PDF.
> > >> Nothing prevents you from using PDF as your design target. There are
> > >> definitely things you can do in PDF that you cannot do in html forma=t=2E
> > >> However, when developing this means you will need to do lots of
> > >> deploying
> > >> and viewing. The development environment preview is html.
> > >> You are a little stuck with how the previous environment worked. RS =is
> > >> streaming the result back to the browser. The browser is the target.
> > >> You
> > >> can change the rendering format but it still gets streamed to the
> > >> browser
> > >> whether it is Excel, PDF, html, image whatever and then IE determines
> > >> how
> > >> to handle it. PDF will get a File Download box. If you want to save= to
> > >> disk on the server your app would have to take the stream and write =it
> > >> to
> > >> disk.
> > >> You also with URL integration have control over which parts of the
> > >> screen
> > >> to show, for instance the parameter section. RS comes with the abili=ty
> > >> to
> > >> export in multiple formats and to print.
> > >> My suggestion is that before you go too much further worry about how= to
> > >> integrate that you first learn about RS. Create a few simple (very
> > >> simple) reports. Try creating the URL and just typing it into the
> > >> browser. Do different things by modifying the URL. Save your example
> > >> URLs
> > >> off. Once you know the capabilities of doing this you can decide if =you
> > >> need to go more extreme and implement web services.
> > >> --
> > >> Bruce Loehle-Conger
> > >> MVP SQL Server Reporting Services
> > >> "Don Miller" <nos...@.nospam.com> wrote in message
> > >>news:OOkUblRAIHA.3548@.TK2MSFTNGP06.phx.gbl...
> > >> Thanks for your time putting this together and your advice.
> > >> Unfortunately, I do "need" a PDF as a file that can be downloaded a=nd
> > >> saved to device (disk, network share, flash drive, etc.) by my
> > >> customers
> > >> for their permanent and legal records (I tell them to right-click my
> > >> link and "Save Target As..." to do the save, rather than rely on Ad=obe
> > >> Reader Disk Save icon). This is a fundamental business requirement.
> > >> Also, the report is usually 8-10 page long and contains about a doz=en
> > >> sub-reports all with different and intricate formatting that cannot= be
> > >> duplicated with HTML (even if I wanted to save in that format). And= it
> > >> does currently takes about 5-10secs to generate (it basically takes
> > >> ALL
> > >> the information about a customer in the database and exports it).
> > >> So, if I understand you, even in the best of circumstances, the
> > >> exported
> > >> PDF document is not ever saved physically to disk on the server? Th=is
> > >> might still work as long as my customer *could* save it with Adobe
> > >> Reader in the browser.
> > >> Otherwise I see a very large learning curve for you.
> > >> Do you know of anyone who has already climbed that mountain who I
> > >> could
> > >> contract to provide the framework for accessing exported PDF files
> > >> from
> > >> SSRS from ASP 3.0?
> > >> And if you don't, do you know of any other references that I could
> > >> begin
> > >> climbing?
> > >> "Bruce L-C [MVP]" <bruce_lcNOS...@.hotmail.com> wrote in message
> > >>news:uOzg3KRAIHA.464@.TK2MSFTNGP02.phx.gbl...
> > >> Unless you need to I would not go to PDF. RS can render in multiple
> > >> ways but PDF and Excel are the slowest. It is not saving the file
> > >> anywhere, it is streaming it to you.
> > >> You can integrate in two ways, web services or URL integration. If
> > >> you
> > >> use URL integration (the easiest) then the user can get the full
> > >> benefit of the server including printing support and they have have
> > >> html output as the rendering type which is much much faster than p=df.
> > >> In books online the documentation is quite good (RS 2005). If you =are
> > >> using RS 2000 then go to the MS site and look at the books on line
> > >> there for RS 2005. URL integration has not changed between version=s=2E
> > >> For example, here is an example URL that sends a parameter. Your a=pp
> > >> would just assemble the URL. I strongly recommend starting this wa=y=2E
> > >> Otherwise I see a very large learning curve for you. You need to
> > >> learn
> > >> and understand Reporting Services. With URL integration you can
> > >> concentrate on that without worrying about webservices from asp 3.0
> > >> website.
> > >> Here are some quick examples. I show below different rendering as
> > >> well:
> > >> Excel, PDF and the default HTML.
> > >> This renders as Excel
> > >>http://servername/reportserver?/Sales/YearlySalesSummary&rs:Format=
=3DEx...
> > >> renders as PDF and passes a parameter for the year
> > >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=3D200=
6&rs...
> > >> renders as HTML (the speediest) which is the default if nothing is
> > >> specified.
> > >>http://servername/reportserver?/Sales/YearlySalesSummary&Year=3D200=
6When
> > >> integrating with older technology URL integration in my mind is the
> > >> way
> > >> to go.
> > >> --
> > >> Bruce Loehle-Conger
> > >> MVP SQL Server Reporting Services
> > >> "Don Miller" <nos...@.nospam.com> wrote in message
> > >>news:elTFOiLAIHA.464@.TK2MSFTNGP02.phx.gbl...
> > >> Thanks for the pointer.
> > >> But how do I specify where the PDF file is created (or is that
> > >> hard-coded into the web service?)?
> > >> And how would I get back the physical path (including filename) of
> > >> the
> > >> PDF file?
> > >> I'm really new at web services and I realize these questions may =be
> > >> naive. Thanks again.
> > >> "EMartinez" <emartinez...@.gmail.com> wrote in message
> > >>news:1190854577.900501.137650@.w3g2000hsg.googlegroups.com...
> > >> On Sep 26, 6:51 pm, "Don Miller" <nos...@.nospam.com> wrote:
> > >>> I currently use Crystal Reports RDC that is called from an ASP =3=2E0
> > >>> page
> > >>> (actually, the ASP page calls my custom VB COM+ code which then
> > >>> calls then
> > >>> RDC), supplies a CustomerID as a parameter to generate a report
> > >>> (e.g. on one
> > >>> customer) that is then exported as a PDF file and saved to the
> > >>> filesystem on
> > >>> the server. That PDF is then available for download by end-users
> > >>> in
> > >>> my web
> > >>> application (i.e. as a link). Since the move to Win2003/SQL Ser=ver
> > >>> 2005 one
> > >>> of the Crystal components is misbehaving and I'd like to move t=his
> > >>> report
> > >>> entirely to SSRS.
> > >>> However, my entire web application is classic ASP 3.0 (and will
> > >>> not
> > >>> be
> > >>> changing anytime soon). So what I'd like to do is call a web
> > >>> service
> > >>> with a
> > >>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web
> > >>> service
> > >>> generate the report, save the PDF file on the server, and return
> > >>> back to the
> > >>> ASP page the path to the PDF file. Except I don't know how to do
> > >>> this and
> > >>> cannot find any examples of using ASP 3.0 with SSRS. I can
> > >>> probably
> > >>> do some
> > >>> limited ASP.NET 2.0 programming to create the web service but n=eed
> > >>> help
> > >>> doing that (if necessary).
> > >>> Can someone please direct me to examples of how to use ASP 3.0 =and
> > >>> SSRS
> > >>> together? Or tell me if I'm going about it the wrong way (e.g. =do
> > >>> I
> > >>> even
> > >>> need to save the PDF on the server)?
> > >>> Thanks for any help or direction.
> > >> You can either iFrame a connection to the Report Server and/or y=ou
> > >> can
> > >> access a report and export it to a predefined format via URL from
> > >> within ASP 3.0. Here's an example of calling a report and export=ing
> > >> it
> > >> to PDF and separately to Excel.
> > ...
> > read more =BB
> Another option, if you can utilize a web service in ASP.NET (which you
> eluded to in the beginning) is to use the URL method that both I and
> Bruce mentioned and then use a combination of StreamReader and
> StreamWriter in ASP.NET (http://msdn2.microsoft.com/en-us/library/
> aa903247(VS.71).aspx ) to return the stream from the URL call (via
> StreamReader) and then write the file physically out to disk (via
> StreamWriter). The report file normally defaults to the 'report name'
> + 'extension of export option selected'; however, you can control the
> filename after the fact as well using File.Move in ASP.NET (https://
> msdn2.microsoft.com/en-us/library/system.io.file.move.aspx ). Of
> course, you would need to know how to reference the Web Service via
> SOAP. Hope this helps.
> Regards,
> Enrique Martinez
> Sr. Software Consultant
Well, if you need further assistance, let me know. The web service
solution I mentioned early is pretty quick and doesn't take much
coding.
Regards,
Enrique Martinez
Sr. Software Consultant|||Hi Don
I was wondring if you can help me with this . I have created
crystal reports(crystal developer edition) in widows 2000 server and calling
via ASP using RDC.
No i need to insall it on production server. I registered all the DLLS given
by BO. does not work.
can you help
shireesh
shireeshkumar@.ups.com
"Don Miller" wrote:
> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
> (actually, the ASP page calls my custom VB COM+ code which then calls then
> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on one
> customer) that is then exported as a PDF file and saved to the filesystem on
> the server. That PDF is then available for download by end-users in my web
> application (i.e. as a link). Since the move to Win2003/SQL Server 2005 one
> of the Crystal components is misbehaving and I'd like to move this report
> entirely to SSRS.
> However, my entire web application is classic ASP 3.0 (and will not be
> changing anytime soon). So what I'd like to do is call a web service with a
> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
> generate the report, save the PDF file on the server, and return back to the
> ASP page the path to the PDF file. Except I don't know how to do this and
> cannot find any examples of using ASP 3.0 with SSRS. I can probably do some
> limited ASP.NET 2.0 programming to create the web service but need help
> doing that (if necessary).
> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
> together? Or tell me if I'm going about it the wrong way (e.g. do I even
> need to save the PDF on the server)?
> Thanks for any help or direction.
>
>|||I only have worked with RDC 8.5 and I know how to get that to work for
exporting PDFs only (with only 5 or 6 DLLs). I recently tried to use RDC XI
and could not get it to work (CR only supports installation of ALL of their
associated DLLs - 150mbs worth - using the installation package - they do
not support picking, choosing, and registering individual DLLs).
So, what version are you working with?
"shireesh" <shireesh@.discussions.microsoft.com> wrote in message
news:852587F4-3028-4F36-8851-57C8DC559B7A@.microsoft.com...
> Hi Don
> I was wondring if you can help me with this . I have created
> crystal reports(crystal developer edition) in widows 2000 server and
> calling
> via ASP using RDC.
> No i need to insall it on production server. I registered all the DLLS
> given
> by BO. does not work.
> can you help
> shireesh
> shireeshkumar@.ups.com
> "Don Miller" wrote:
>> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
>> (actually, the ASP page calls my custom VB COM+ code which then calls
>> then
>> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on
>> one
>> customer) that is then exported as a PDF file and saved to the filesystem
>> on
>> the server. That PDF is then available for download by end-users in my
>> web
>> application (i.e. as a link). Since the move to Win2003/SQL Server 2005
>> one
>> of the Crystal components is misbehaving and I'd like to move this report
>> entirely to SSRS.
>> However, my entire web application is classic ASP 3.0 (and will not be
>> changing anytime soon). So what I'd like to do is call a web service with
>> a
>> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> generate the report, save the PDF file on the server, and return back to
>> the
>> ASP page the path to the PDF file. Except I don't know how to do this and
>> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> some
>> limited ASP.NET 2.0 programming to create the web service but need help
>> doing that (if necessary).
>> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
>> together? Or tell me if I'm going about it the wrong way (e.g. do I even
>> need to save the PDF on the server)?
>> Thanks for any help or direction.
>>|||Hi Don
Thanks for the reply . I am using Crystal 8.5 . i used the
following DLLs
Craxdrt.dll,CRViewer.dll,CRdesigner.dll,CRDesignerCtrl.dll,CRaxddrt.dll,p2soledb.ddl,p2sodbc.dll.
I see no error just balnk white screen.
My envrionment is
Microsoft 2000 server SP4
Sqlserver 2000 SP4
Crystal Reports 8.5
ASP
I am using stored procedure for Crytal reports
Please help if i am missign something.
thanks
shireesh
"Don Miller" wrote:
> I only have worked with RDC 8.5 and I know how to get that to work for
> exporting PDFs only (with only 5 or 6 DLLs). I recently tried to use RDC XI
> and could not get it to work (CR only supports installation of ALL of their
> associated DLLs - 150mbs worth - using the installation package - they do
> not support picking, choosing, and registering individual DLLs).
> So, what version are you working with?
>
> "shireesh" <shireesh@.discussions.microsoft.com> wrote in message
> news:852587F4-3028-4F36-8851-57C8DC559B7A@.microsoft.com...
> > Hi Don
> > I was wondring if you can help me with this . I have created
> > crystal reports(crystal developer edition) in widows 2000 server and
> > calling
> > via ASP using RDC.
> > No i need to insall it on production server. I registered all the DLLS
> > given
> > by BO. does not work.
> >
> > can you help
> >
> > shireesh
> > shireeshkumar@.ups.com
> >
> > "Don Miller" wrote:
> >
> >> I currently use Crystal Reports RDC that is called from an ASP 3.0 page
> >> (actually, the ASP page calls my custom VB COM+ code which then calls
> >> then
> >> RDC), supplies a CustomerID as a parameter to generate a report (e.g. on
> >> one
> >> customer) that is then exported as a PDF file and saved to the filesystem
> >> on
> >> the server. That PDF is then available for download by end-users in my
> >> web
> >> application (i.e. as a link). Since the move to Win2003/SQL Server 2005
> >> one
> >> of the Crystal components is misbehaving and I'd like to move this report
> >> entirely to SSRS.
> >>
> >> However, my entire web application is classic ASP 3.0 (and will not be
> >> changing anytime soon). So what I'd like to do is call a web service with
> >> a
> >> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
> >> generate the report, save the PDF file on the server, and return back to
> >> the
> >> ASP page the path to the PDF file. Except I don't know how to do this and
> >> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
> >> some
> >> limited ASP.NET 2.0 programming to create the web service but need help
> >> doing that (if necessary).
> >>
> >> Can someone please direct me to examples of how to use ASP 3.0 and SSRS
> >> together? Or tell me if I'm going about it the wrong way (e.g. do I even
> >> need to save the PDF on the server)?
> >>
> >> Thanks for any help or direction.
> >>
> >>
> >>
>
>|||For my requirements (load a report and export it as PDF to my server's file
system using OLEDB for data access) it requires that I put crxf_pdf.dll,
p2soledb.dll, and u2ddisk.dll in a folder called Crystal in either WINDOWS
or WINNT folder. The files in this folder do NOT need to be registered (you
can't anyway).
The other critical files go in some folder of your choice but all need to be
registered. This includes craxdrt.dll, crtslv.dll, and ExportModeller.dll
(for my implementation).
So I suspect you need to put p2soledb.ddl, p2sodbc.dll in a folder named
Crystal in WINNT and the others in a folder of your choice and register them
all with the system. I don't use those other DLLs so I don't really know
where they go.
I hope this helps a little.
"shireesh" <shireesh@.discussions.microsoft.com> wrote in message
news:82337A68-166D-4E96-9B76-B98F44214736@.microsoft.com...
> Hi Don
> Thanks for the reply . I am using Crystal 8.5 . i used the
> following DLLs
> Craxdrt.dll,CRViewer.dll,CRdesigner.dll,CRDesignerCtrl.dll,CRaxddrt.dll,p2soledb.ddl,p2sodbc.dll.
> I see no error just balnk white screen.
> My envrionment is
> Microsoft 2000 server SP4
> Sqlserver 2000 SP4
> Crystal Reports 8.5
> ASP
> I am using stored procedure for Crytal reports
> Please help if i am missign something.
> thanks
> shireesh
>
> "Don Miller" wrote:
>> I only have worked with RDC 8.5 and I know how to get that to work for
>> exporting PDFs only (with only 5 or 6 DLLs). I recently tried to use RDC
>> XI
>> and could not get it to work (CR only supports installation of ALL of
>> their
>> associated DLLs - 150mbs worth - using the installation package - they do
>> not support picking, choosing, and registering individual DLLs).
>> So, what version are you working with?
>>
>> "shireesh" <shireesh@.discussions.microsoft.com> wrote in message
>> news:852587F4-3028-4F36-8851-57C8DC559B7A@.microsoft.com...
>> > Hi Don
>> > I was wondring if you can help me with this . I have created
>> > crystal reports(crystal developer edition) in widows 2000 server and
>> > calling
>> > via ASP using RDC.
>> > No i need to insall it on production server. I registered all the DLLS
>> > given
>> > by BO. does not work.
>> >
>> > can you help
>> >
>> > shireesh
>> > shireeshkumar@.ups.com
>> >
>> > "Don Miller" wrote:
>> >
>> >> I currently use Crystal Reports RDC that is called from an ASP 3.0
>> >> page
>> >> (actually, the ASP page calls my custom VB COM+ code which then calls
>> >> then
>> >> RDC), supplies a CustomerID as a parameter to generate a report (e.g.
>> >> on
>> >> one
>> >> customer) that is then exported as a PDF file and saved to the
>> >> filesystem
>> >> on
>> >> the server. That PDF is then available for download by end-users in my
>> >> web
>> >> application (i.e. as a link). Since the move to Win2003/SQL Server
>> >> 2005
>> >> one
>> >> of the Crystal components is misbehaving and I'd like to move this
>> >> report
>> >> entirely to SSRS.
>> >>
>> >> However, my entire web application is classic ASP 3.0 (and will not be
>> >> changing anytime soon). So what I'd like to do is call a web service
>> >> with
>> >> a
>> >> parameter from my ASP 3.0 page (e.g. CustomerID), have the web service
>> >> generate the report, save the PDF file on the server, and return back
>> >> to
>> >> the
>> >> ASP page the path to the PDF file. Except I don't know how to do this
>> >> and
>> >> cannot find any examples of using ASP 3.0 with SSRS. I can probably do
>> >> some
>> >> limited ASP.NET 2.0 programming to create the web service but need
>> >> help
>> >> doing that (if necessary).
>> >>
>> >> Can someone please direct me to examples of how to use ASP 3.0 and
>> >> SSRS
>> >> together? Or tell me if I'm going about it the wrong way (e.g. do I
>> >> even
>> >> need to save the PDF on the server)?
>> >>
>> >> Thanks for any help or direction.
>> >>
>> >>
>> >>
>>