Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.NET 2.0 Crystal ttx file problem

Status
Not open for further replies.

joggi

Programmer
Nov 8, 2006
44
YU
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?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top