donvari Posted August 9, 2007 Report Share Posted August 9, 2007 Hi, I'm using ChartFX for Visual Studio 2005 with Visual Studio 2005 and .NET Framework 2.0. I have to built events for the .NET rendered chart controls. The events are written with vbscript and referenced in the .aspx file. I also set the security permissons to full trust but the events in the script don't fire up. Can someone help me? plz Thanks a lot, greets from austria!!! Quote Link to comment Share on other sites More sharing options...
donvari Posted August 9, 2007 Author Report Share Posted August 9, 2007 An other point of my problem is, that I can not find the ChartFX.Internet.Client.dll whenn I try to increase the assembly trust. Where I can find this assembly? Quote Link to comment Share on other sites More sharing options...
Frank Posted August 9, 2007 Report Share Posted August 9, 2007 The assembly for Chart FX for VS 2005 is ChartFX.NETIEClient.dll. ChartFX.Internet.Client.dll is for Chart FX 6.x. Quote Link to comment Share on other sites More sharing options...
donvari Posted August 9, 2007 Author Report Share Posted August 9, 2007 Ok thanks for your answer, Is it necessary to set the security permissons when I'm using .NET Framework 2.0 and VS 2005, because in the Articles is only .NET Framework 1.1 Quote Link to comment Share on other sites More sharing options...
Frank Posted August 9, 2007 Report Share Posted August 9, 2007 Yes. In order for the .NET Control to interact with Java Script (e.g. Send Events) it needs to have full trust. Quote Link to comment Share on other sites More sharing options...
donvari Posted August 9, 2007 Author Report Share Posted August 9, 2007 but I use VBSCRIPT, does it matter? and where I can find the events, that can be fire up on the client side? Quote Link to comment Share on other sites More sharing options...
Frank Posted August 9, 2007 Report Share Posted August 9, 2007 VBScript or JavaScript. It doesn't matter. This is a security restriction going from managed code(Chart FX) to unmanaged code (IE). The events are the same as for the Windows Form control (the IE Control is after all a Windows Form control) which can be found in the documentation. Quote Link to comment Share on other sites More sharing options...
donvari Posted August 10, 2007 Author Report Share Posted August 10, 2007 Thank you, but my problem is still alive. I try to built a few events for a chart written in vbscript but none of them works. List of events: Sub Chart1_MouseDown(nButton, nClicks, nHitType, x, y, nSeries, nPoint, obj)...Sub Chart1_GetPointLabel( nAxis, nSeries, nPoint, sLabel)....Sub Chart1_PrePaint(w, h, objGraphics)...The script is an external file and the .vbs file is imported in the .aspx file: < script language="vbscript" src="MainForm.vbs"></script> I really hope you can help me. Quote Link to comment Share on other sites More sharing options...
donvari Posted August 10, 2007 Author Report Share Posted August 10, 2007 The next point of my problem is that I have to override the Render method of the page, otherwise the IE returns an error: Protected Overrides Sub Render(ByVal writer As System.Web.UI.HtmlTextWriter) Dim iobjString As New System.Text.StringBuilderDim iobjWriter As New HtmlTextWriter(New System.IO.StringWriter(iobjString)) Dim istrHTML As StringMyBase.Render(iobjWriter) istrHTML = iobjString.ToString() 'Search for Script-Tags istrHTML = istrHTML.Replace("<script", "<script language=""jscript""")istrHTML = istrHTML.Replace("language=""jscript"" language=""vbscript""", "language=""vbscript""") writer.Write(istrHTML) End Sub Quote Link to comment Share on other sites More sharing options...
donvari Posted August 10, 2007 Author Report Share Posted August 10, 2007 help plz Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.