Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all articles
Browse latest Browse all 3636

HOW TO CHANGE THE DATASOURCE AT RUNTIME FOR DATASOURCE USED " WINDOWS EVENT LOG "??

$
0
0

I have create the crystal report in Visual Studio 2010 using data source as windows event log. for this I have created a new connection from the database expert window.

 

More new connection-> NT Current Event-> create new connection (given local machine as server name for designing)

 

then I designed the report.

 

Now I want to change my connection to othe server's windows event log at runtime through vb.net code. for this I have tried below code

 

With Connectionifo

.serevr="SERVER_NEW"

.database=                                    \*(Not sure what to give)

.Integrated security= true

end with...... (and also passed all table info with the similar code)

 

(the above report is working fine for reports pointing to sql server databse)

 

but it is not working for reports pointing to windows event log.

 

 

Kindly help me .

.


Viewing all articles
Browse latest Browse all 3636

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>