Groups | Blog | Home
all groups > sql server reporting services > august 2004 >

sql server reporting services : Problems with C# Sample to Print Reports


Gerhard Paulman
8/29/2004 12:00:55 PM
I am having permission problems with the sample report printing program from
Bryan Keller. (http://www.csharphelp.com/archives3/archive545.html)

The DefaultCredentials from the CredentialCache certainly has no data, and I
don't seem to be able to get valid data into the cache

Not sure about the relative path of the report either. I am running against
my own report, since I don't have the samples installed. I am using:
/Report Project1/118-2 as a path.
Don't know if that is correct, but that is what I see when I run it in the
browser. Except the '/' char turns into %2F, and the space into a '+'.
So it's %2FReport+Project1%2F118-2 in the browser.

Has anybody else tried this sample program with their own reports?

Gerhard

Ravi
8/29/2004 4:20:34 PM
The path of a report is relative to the root on the Report
Server.
So in the Report Manager if you see your report , lets say
report1 under the folder Report Project1 then the path of
your report is Report Project1/report1.

[quoted text, click to view]
Gerhard
8/29/2004 8:19:11 PM
Ok, thanks, Ravi, that makes sense.

What about the DefaultCredentials? There are null strings for user/pw and
domain right now.
How do I get my domain credentials into the cache?

Gerhard

[quoted text, click to view]

Gerhard
8/30/2004 12:36:14 AM
Ok, got the path and credentials problem solved. I can elaborated if it
will help others.
Path is: /folder/report
Credentials is: rs.Credentials = new
NetworkCredential("user","pw","domain")
DefaultCredentials may work if you're on a Lan, I'm on a VPN.

But now the question is: How do I pass parameters, as part of the URL? And
syntax?
Yeah I know, I'm a pain. <g> Sorry, this is all hitting me a little fast
too.
Gerhard

[quoted text, click to view]

Dennis Redfield
9/1/2004 3:10:12 PM
[quoted text, click to view]

After making modifications for credencials I have used this code
successfully. Thursday I will try running it as a assembly from a web
page - we shall see. Looks good.

dlr
[quoted text, click to view]

AddThis Social Bookmark Button