Results 1 to 5 of 5

Thread: Set Datasource Location to XSD at Runtime

Threaded View

  1. #3

    Thread Starter
    New Member
    Join Date
    Mar 2012
    Posts
    4

    Re: Set Datasource Location to XSD at Runtime

    The reports weren't designed using a dataset, they were built using TTXs to define the datastructure. I have that code almost verbatim in my project and when I try to run the report via ReportViewer I am prompted with a Login box that asks for username/password for Server: "C:\ttx files\somefile.ttx". The report is using the ttx file as the datasource location. I've tried modifying the report at runtime with:

    Code:
    customerReport.Database.Tables.Item(0).ApplyLogOnInfo(logOnInfo)
    and
    Code:
    customerReport.DataSourceConnections.Item(0).SetConnection("D:\XSDs\somefile.xsd", "", False)
    But these changes make no difference. How can I get the report to stop looking for that ttx file?

    To give a better idea of how my code looks it's basically exactly like the sample tutorial VB_Win_Data_DataSets where a helper class fills a dataset and then I use SetDataSource(DataSet).
    Last edited by dbcooper; Mar 2nd, 2012 at 10:50 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width