Hi, everyone
Im using VB.NET 2010 and MySQL. I have created reports using XML as datasource. I didn't have problems during the development, all seems to work fine.
My problem is whenever I copy the exe file from the "bin" folder of my project and try to run it outside(ex: desktop), it can no longer generate the exact report.
The same is true when I create a deployment setup and try to install it.
This doesn't works even though I'm still using the DEV pc.
I think it cannot generate an exact report when it is not in the "bin" or project location.
Here is the code I got from youtube in creating xml file to be used in creating reports. The code creates an xml file where the reports based its data/content. The xml files are created just where the exe file is located.
Dim ds As New DataSet
Dim cs As New MySqlConnection(connStr)
Dim da As New MySqlDataAdapter
sql = "SELECT * . . . . "
Try
cs.Open()
da.SelectCommand = New MySqlCommand(sql, cs)
da.Fill(ds)
ds.WriteXml(CurDir() & "\reportFile.xml", XmlWriteMode.WriteSchema)
Catch ex As Exception
MsgBox(ex.Message)
End Try
I hope I can get any help or suggestions.
Thank you so much.