Click here to Skip to main content
15,887,328 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: use one gridview with two tables having no common field? Pin
Zafar A khan 10-Jul-09 19:27
professionalZafar A khan 10-Jul-09 19:27 
QuestionCreate select stored procedure and create connection string Pin
Mix Wheels9-Jul-09 3:08
Mix Wheels9-Jul-09 3:08 
AnswerRe: Create select stored procedure and create connection string Pin
Christian Graus9-Jul-09 3:15
protectorChristian Graus9-Jul-09 3:15 
GeneralRe: Create select stored procedure and create connection string Pin
Manas Bhardwaj9-Jul-09 3:21
professionalManas Bhardwaj9-Jul-09 3:21 
GeneralRe: Create select stored procedure and create connection string Pin
Christian Graus9-Jul-09 3:26
protectorChristian Graus9-Jul-09 3:26 
AnswerRe: Create select stored procedure and create connection string Pin
Manas Bhardwaj9-Jul-09 3:17
professionalManas Bhardwaj9-Jul-09 3:17 
AnswerRe: Create select stored procedure and create connection string Pin
Sun Rays9-Jul-09 3:30
Sun Rays9-Jul-09 3:30 
QuestionDeploy report via code Pin
mehrdadc489-Jul-09 2:43
mehrdadc489-Jul-09 2:43 
Hi everybody,
I've written this code for publish reports on ReportServer.Everything is ok, but if I have SharedDataSource it says:
---------------------------
The dataset ‘NewDT’ refers to the shared data source ‘NewDT’, which is not published on the report server.
---------------------------
what's wrong?

Dim TmpEncoding As New System.Text.UTF8Encoding
        Dim TmpReportDefinition() As Byte = TmpEncoding.GetBytes(PRdl)

        Dim TmpWarnings() As Warning = TmpRsProxy.CreateReport(PReportName, PParentPath, True, TmpReportDefinition, Nothing)

        Dim TmpDataSources As DataSource() = TmpRsProxy.GetItemDataSources(PParentPath & "/" & PReportName)

        For Each TmpDataSource As DataSource In TmpDataSources

            Dim dSource As New DataSource
            Dim dDefinition As New DataSourceDefinition()
            dSource.Item = dDefinition
            dDefinition.Extension = "Sql"
            dDefinition.ConnectString = "Data Source=" + ClsSetting.DbServerName + ";Initial Catalog=" + ClsSetting.DbName
            dDefinition.ImpersonateUserSpecified = True
            dDefinition.Prompt = Nothing
            dDefinition.WindowsCredentials = True
            dDefinition.CredentialRetrieval = CredentialRetrievalEnum.Integrated
            dSource.Name = TmpDataSource.Name

            Try

                TmpRsProxy.CreateDataSource(dSource.Name, ClsSetting.DataSourceLocation, True, dDefinition, Nothing)

                If TypeOf (TmpDataSource.Item) Is DataSourceReference Then

                    Dim DsReference As New DataSourceReference()
                    Dim ds As New DataSource
                    DsReference.Reference = ClsSetting.DataSourceLocation + "/" + dSource.Name
                    Dim DataSources() As DataSource = TmpRsProxy.GetItemDataSources(PParentPath & "/" & PReportName)
                    ds = DataSources(0)
                    ds.Item = CType(DsReference, DataSourceReference)
                    ds.Name = TmpDataSource.Name
                    TmpRsProxy.SetItemDataSources(PParentPath + "/" + PReportName, DataSources)
                End If

            Catch ex As System.Web.Services.Protocols.SoapException
                Throw ex
            End Try
        Next
</pre> 

<div class="ForumSig">Best wishes</div>

AnswerRe: Deploy report via code Pin
Sun Rays9-Jul-09 3:32
Sun Rays9-Jul-09 3:32 
Questionasp.NET connection string and list<perametertype></perametertype> Pin
Phumlani Kunene9-Jul-09 2:39
Phumlani Kunene9-Jul-09 2:39 
AnswerRe: asp.NET connection string and list Pin
Christian Graus9-Jul-09 3:14
protectorChristian Graus9-Jul-09 3:14 
AnswerRe: asp.NET connection string and list Pin
Manas Bhardwaj9-Jul-09 3:25
professionalManas Bhardwaj9-Jul-09 3:25 
Questionproblem in attaching files in mail Pin
souravghosh189-Jul-09 2:20
souravghosh189-Jul-09 2:20 
AnswerRe: problem in attaching files in mail Pin
Christian Graus9-Jul-09 2:35
protectorChristian Graus9-Jul-09 2:35 
AnswerRe: problem in attaching files in mail Pin
Sun Rays9-Jul-09 2:44
Sun Rays9-Jul-09 2:44 
Questionupdate on linkbutton click Pin
vikas shukla9-Jul-09 1:20
vikas shukla9-Jul-09 1:20 
AnswerRe: update on linkbutton click Pin
Christian Graus9-Jul-09 2:08
protectorChristian Graus9-Jul-09 2:08 
AnswerRe: update on linkbutton click Pin
Sun Rays9-Jul-09 2:42
Sun Rays9-Jul-09 2:42 
Questionserver transfer Pin
sheemap9-Jul-09 0:03
sheemap9-Jul-09 0:03 
AnswerRe: server transfer Pin
www.Developerof.NET9-Jul-09 0:08
www.Developerof.NET9-Jul-09 0:08 
GeneralRe: server transfer Pin
Manas Bhardwaj9-Jul-09 0:10
professionalManas Bhardwaj9-Jul-09 0:10 
GeneralRe: server transfer Pin
www.Developerof.NET9-Jul-09 0:25
www.Developerof.NET9-Jul-09 0:25 
AnswerRe: server transfer Pin
Manas Bhardwaj9-Jul-09 0:08
professionalManas Bhardwaj9-Jul-09 0:08 
GeneralRe: server transfer Pin
sheemap9-Jul-09 0:54
sheemap9-Jul-09 0:54 
GeneralRe: server transfer Pin
Manas Bhardwaj9-Jul-09 1:14
professionalManas Bhardwaj9-Jul-09 1:14 

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.