I want my Crystal report to use ttx file.
I have this code:
Public Declare Function CreateFieldDefFile Lib "p2smon.dll" (ByVal lpUnk As Object, ByVal fileName As String, ByVal bOverWriteExistingFile As Long) As Long
And in my function:
dt = New DataTable
dt = ....I fill dt
Call CreateFieldDefFile(dt, "C:\Documents and Settings\xxx\My Documents\Visual Studio 2005\WebSites\Test\Crystal\Test.ttx", True)
But I got error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Could somebody help me with this?
I have this code:
Public Declare Function CreateFieldDefFile Lib "p2smon.dll" (ByVal lpUnk As Object, ByVal fileName As String, ByVal bOverWriteExistingFile As Long) As Long
And in my function:
dt = New DataTable
dt = ....I fill dt
Call CreateFieldDefFile(dt, "C:\Documents and Settings\xxx\My Documents\Visual Studio 2005\WebSites\Test\Crystal\Test.ttx", True)
But I got error:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Could somebody help me with this?