Click here to Skip to main content
15,912,977 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Error message Pin
Christian Graus7-Jun-07 12:39
protectorChristian Graus7-Jun-07 12:39 
QuestionCustom WSS 3.0 aspx page Pin
archangel7177-Jun-07 11:29
archangel7177-Jun-07 11:29 
Questionhow-to select a specific row in gridview C# Pin
pat3d27-Jun-07 9:55
pat3d27-Jun-07 9:55 
QuestionConverting Request object to WebRequest in asp.net Pin
amitar277-Jun-07 9:19
amitar277-Jun-07 9:19 
AnswerRe: Converting Request object to WebRequest in asp.net Pin
Not Active7-Jun-07 9:25
mentorNot Active7-Jun-07 9:25 
GeneralRe: Converting Request object to WebRequest in asp.net Pin
amitar277-Jun-07 11:03
amitar277-Jun-07 11:03 
GeneralRe: Converting Request object to WebRequest in asp.net Pin
Not Active7-Jun-07 15:13
mentorNot Active7-Jun-07 15:13 
QuestionDisplaying SSRS 2005 via Web Services in ASP.NET Pin
BigBlueEye7-Jun-07 6:22
BigBlueEye7-Jun-07 6:22 
Hi. I've created a SSRS chart report that I'd like to display in my .net web application via web services. I've found a few examples that work with SSRS 2000 but not 05. I've managed to get the report to write to a pdf file but I'm unable display it directly in a browser. My code is below, any help will be greatly appreciated. Also if anyone knows where I can review some SSRS 2005 examples of displaying reports on a web page, that would be great! Thanks!

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

Dim rs As RSwebReference.ReportingService2005 = New RSwebReference.ReportingService2005()
Dim rsExec As RSwebReference.ReportExecutionService = New RSwebReference.ReportExecutionService()

'Authenticate to the Web service using Windows credentials
rs.Credentials = System.Net.CredentialCache.DefaultCredentials
rsExec.Credentials = System.Net.CredentialCache.DefaultCredentials

'Assign the URL of the Web service
rs.Url = "http://localhost/REPORTSERVER$SQL2005/ReportService2005.asmx"
rsExec.Url = "http://localhost/REPORTSERVER$SQL2005/ReportExecution2005.asmx"

Dim results As Byte() = Nothing
Dim historyID As String = Nothing
Dim format As String = "pdf"
Dim encoding As String
Dim mimeType As String
Dim extension As String
Dim warnings() As RSwebReference.Warning
Dim streamIDs() As String = Nothing
Dim fileName As String = "C:\samplereport.pdf"
Dim deviceInfo As String = Nothing

'Dim deviceInfo As String = _
' "<deviceinfo>" + _
' "<toolbar>False" + _
' "<parameters>False" + _
' "<docmap>True" + _
' "<zoom>100" + _
' ""

'Define variables needed for GetParameters() method
Dim _reportName As String = "/Test/AuditVendorStatus"
Dim _historyID As String = Nothing
Dim _forRendering As Boolean = False
Dim _values As RSwebReference.ParameterValue() = Nothing
Dim _credentials As RSwebReference.DataSourceCredentials() = Nothing
Dim _parameters As RSwebReference.ReportParameter() = Nothing

Try
'Get if any parameters needed.
'_parameters = rs.GetReportParameters(_reportName, _historyID, _forRendering, _values, _credentials)

'Load the selected report.
Dim ei As RSwebReference.ExecutionInfo = rsExec.LoadReport(_reportName, historyID)

'---------------------------------------------------------
'Set the parameters for the report needed.
'create an array of the values for the report parameters
'Dim parameters(1) As RSwebReference.ParameterValue
'Dim paramValue As RSwebReference.ParameterValue

'paramValue = New RSwebReference.ParameterValue
'paramValue.Name = "StartDate"
'paramValue.Value = ""
'parameters(0) = paramValue

'paramValue = New RSwebReference.ParameterValue
'paramValue.Name = "EndDate"
'paramValue.Value = ""
'parameters(1) = paramValue

'rsExec.SetExecutionParameters(parameters, "en-us")
'---------------------------------------------------------
results = rsExec.Render(format, deviceInfo, extension, encoding, mimeType, warnings, streamIDs)

'Create a file stream and write the report to it
Dim stream As System.IO.FileStream = System.IO.File.OpenWrite(fileName)
stream.Write(results, 0, results.Length)

Catch ex As Exception
'TODO
End Try
End Sub
Questionhow to run in linux...? Pin
Balaji.K7-Jun-07 6:08
Balaji.K7-Jun-07 6:08 
AnswerRe: how to run in linux...? Pin
Sathesh Sakthivel7-Jun-07 6:41
Sathesh Sakthivel7-Jun-07 6:41 
AnswerRe: how to run in linux...? Pin
Venkatesh Mookkan7-Jun-07 17:49
Venkatesh Mookkan7-Jun-07 17:49 
QuestionColoring of Dropdownlist items Pin
haasini7-Jun-07 5:07
haasini7-Jun-07 5:07 
AnswerRe: Coloring of Dropdownlist items Pin
Sathesh Sakthivel7-Jun-07 6:35
Sathesh Sakthivel7-Jun-07 6:35 
QuestionValidationGroup= doesn't fire in control Pin
Brendan Vogt7-Jun-07 4:55
Brendan Vogt7-Jun-07 4:55 
QuestionDB connection location. Pin
sergeyv20027-Jun-07 4:38
sergeyv20027-Jun-07 4:38 
AnswerRe: DB connection location. Pin
Not Active7-Jun-07 4:57
mentorNot Active7-Jun-07 4:57 
Questionexport datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 3:57
D.Sridhar7-Jun-07 3:57 
AnswerRe: export datagrid to excel from a popup window Pin
l0kke7-Jun-07 4:24
l0kke7-Jun-07 4:24 
GeneralRe: export datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 4:41
D.Sridhar7-Jun-07 4:41 
GeneralRe: export datagrid to excel from a popup window Pin
D.Sridhar7-Jun-07 7:06
D.Sridhar7-Jun-07 7:06 
QuestionUploading problem Pin
ASPnoob7-Jun-07 3:04
ASPnoob7-Jun-07 3:04 
AnswerRe: Uploading problem Pin
Chetan Ranpariya7-Jun-07 3:29
Chetan Ranpariya7-Jun-07 3:29 
QuestionRe: Uploading problem [modified] Pin
ASPnoob7-Jun-07 8:05
ASPnoob7-Jun-07 8:05 
AnswerRe: Uploading problem Pin
Chetan Ranpariya7-Jun-07 20:27
Chetan Ranpariya7-Jun-07 20:27 
GeneralRe: Uploading problem [modified] Pin
ASPnoob7-Jun-07 22:18
ASPnoob7-Jun-07 22:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.