User (Legacy) Posted January 8, 2004 Report Share Posted January 8, 2004 I have been stuck on a problem, which seems simple, but I cant seem to solve Im working on a button for a webform called Copy as a metafile, the aim this when the user clicks on this button is the export ChartFX1 (its what I called my chart) as a metafile onto the user I have been putting simple script on the HTML page where this button is: <script language =javascript > function CopyClick() { ChartFX1.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") } </script> Would the button be html button or server button? I have a HTML button and the OnClick = CopyClick(), see below <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; POSITION: absolute; TOP: 136px; HEIGHT: 24px" Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" title="Copy As A Metafile" type="button">Copy As a Metafile</button></form> I dont have anything on the server side. IM getting an error, just says error on page. It seems to not know what ChartFX1, but it is what I called my chart in the HTML. What am I doing wrong? Can you advise me how to get working? I have tried searching for solutions and alsorts, with no success. Appreciated. Also I have full trust on .net settings. TIA Elvina Link to comment Share on other sites More sharing options...
Software FX Posted January 8, 2004 Report Share Posted January 8, 2004 Please note that if you are using MainClient (new ChartFX installations will default to use this since it improves performance) you will need to get the chart by using ChartFX1.Chart. This is because when using MainClient the object that gets rendered into the HTML page is a MainClient object that will ultimately create a chart. About the button. It needs to be a client-side button. An HTML button should work fine. If you continue having problems please post the <OBJECT> tag in your page (View Source) that relates to the chart. -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:YR5wdRf1DHA.3512@WEBSERVER1... > I have been stuck on a problem, which seems simple, but I cant seem to solve > > Im working on a button for a webform called Copy as a metafile, the aim this > when the user clicks on this button is the export ChartFX1 (its what I > called my chart) as a metafile onto the user I have been putting simple > script on the HTML page where this button is: > > > <script language =javascript > > function CopyClick() { > ChartFX1.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > } > </script> > > Would the button be html button or server button? I have a HTML button and > the OnClick = CopyClick(), see below > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > title="Copy As A Metafile" > type="button">Copy As a Metafile</button></form> > > I dont have anything on the server side. > IM getting an error, just says error on page. It seems to not know what > ChartFX1, but it is what I called my chart in the HTML. What am I doing > wrong? > > Can you advise me how to get working? I have tried searching for solutions > and alsorts, with no success. Appreciated. > > Also I have full trust on .net settings. > > TIA Elvina > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 8, 2004 Author Report Share Posted January 8, 2004 I have just changed it to ChartFX1.Chart, still not working. Here is the html for that page. I noticed I dont have a <OBJECT> tag, why? (I have indicated where the chart tag starts and ends) Thanks <HTML> <HEAD> <title>ECM Attribution Graphs</title> <LINK href="includeFT/reports.css" type="text/css" rel="stylesheet"> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> <script language =javascript > function CopyClick() { ChartFX1.Chart.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") } </script> </HEAD> <body MS_POSITIONING="GridLayout" id="Body1"> <!-- Add table heading and column headings --> <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" align="center" border="0"> <tr vAlign="top"> <tr> <td class="FundHeading3">ECM Attribution Graphs</td> </tr> </table> <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" align="center" border="0"> <tr vAlign="top"> <td><br> <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" align="center" border="0"> <tr> </tr> <tr> <td class="FundHeading" style="HEIGHT: 25px" align="left" colSpan="8"></td> </tr> <tr> <td class="FundHeading" align="left" colSpan="8">Monthly Increment to Euribor (by Asset Class)</td> </tr> </table> </td> </tr> </table> <br> <form id="Form1" method="post" runat="server"> ------------------Chart tag starts-------------------------------- <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; LEFT: 24px; POSITION: absolute; TOP: 168px" runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" BorderColor="#000000" NValues="8" BackColor="Info" Width="936px" Height="500px" SerLegBox="True" ImgHeight="500" ImgWidth="900" InsideColor="Info" WallWidth="2" MainClient="False" BorderEffect="None" ImageMode="Clipped" ToolBar="True" ImgQuality="100" EnableViewState="False" AllowEdit="False"> <AxisY Gridlines="True" AlternateColor="Black" Font="Arial Unicode MS, 8.25pt" TextColor="Black" Title-Text="Basis Points" Title-TextColor="Black"> <LabelsFormat Decimals="0"></LabelsFormat> <MinorGrid Color="Black"></MinorGrid> <Grid Color="Black"></Grid> <Line Color="Black"></Line> </AxisY> <Titles> <chartfx:TitleDockable></chartfx:TitleDockable> </Titles> <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> <DataEditorObj Interlaced="Horizontal" Alignment="Center"></DataEditorObj> <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" TickMark="None" Step="1" Title-Text="Time (months)" Title-TextColor="Black"> <MinorGrid Color="Black"></MinorGrid> <Grid Color="Black"></Grid> <Line Color="Black"></Line> </AxisX> <Extensions> <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> </Extensions> </CHARTFX:CHART> -----------------------------Chart tags end--------------------------------------- <p></p> <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: 656px; POSITION: absolute; TOP: 144px" runat="server" Width="202px" Height="22px" NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative Asset Class graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" style="Z-INDEX: 103; LEFT: 368px; POSITION: absolute; TOP: 136px" runat="server" Width="206px" DataValueField='"CCE"'> <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> <asp:ListItem Value="DEC">DEC</asp:ListItem> <asp:ListItem Value="ECL">ECL</asp:ListItem> <asp:ListItem Value="IGE">IGE</asp:ListItem> </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; LEFT: 576px; POSITION: absolute; TOP: 136px" runat="server" Width="56px" Text="Refresh"></asp:button></p> <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; POSITION: absolute; TOP: 136px; HEIGHT: 24px" Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" title="Copy As A Metafile" type="button">Copy As a Metafile</button></form> </body> </HTML> Elvina "SoftwareFX Support" <support@softwarefx.com> wrote in message news:pV$x83f1DHA.3808@WEBSERVER1... > Please note that if you are using MainClient (new ChartFX installations will > default to use this since it improves performance) you will need to get the > chart by using ChartFX1.Chart. This is because when using MainClient the > object that gets rendered into the HTML page is a MainClient object that > will ultimately create a chart. > > About the button. It needs to be a client-side button. An HTML button should > work fine. > > If you continue having problems please post the <OBJECT> tag in your page > (View Source) that relates to the chart. > > -- > Regards, > > JC > Software FX Support > "Elvina Lam" <elam@europeancredit.com> wrote in message > news:YR5wdRf1DHA.3512@WEBSERVER1... > > I have been stuck on a problem, which seems simple, but I cant seem to > solve > > > > Im working on a button for a webform called Copy as a metafile, the aim > this > > when the user clicks on this button is the export ChartFX1 (its what I > > called my chart) as a metafile onto the user I have been putting simple > > script on the HTML page where this button is: > > > > > > <script language =javascript > > > function CopyClick() { > > ChartFX1.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > > } > > </script> > > > > Would the button be html button or server button? I have a HTML button and > > the OnClick = CopyClick(), see below > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > title="Copy As A Metafile" > > type="button">Copy As a Metafile</button></form> > > > > I dont have anything on the server side. > > IM getting an error, just says error on page. It seems to not know what > > ChartFX1, but it is what I called my chart in the HTML. What am I doing > > wrong? > > > > Can you advise me how to get working? I have tried searching for solutions > > and alsorts, with no success. Appreciated. > > > > Also I have full trust on .net settings. > > > > TIA Elvina > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 8, 2004 Report Share Posted January 8, 2004 To get the OBJECT tag you need to hit your page from your browser and select "View - Source" -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:Kq9KE$f1DHA.3512@WEBSERVER1... > I have just changed it to ChartFX1.Chart, still not working. > > Here is the html for that page. I noticed I dont have a <OBJECT> tag, why? > (I have indicated where the chart tag starts and ends) Thanks > > <HTML> > <HEAD> > <title>ECM Attribution Graphs</title> > <LINK href="includeFT/reports.css" type="text/css" rel="stylesheet"> > <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> > <meta content="C#" name="CODE_LANGUAGE"> > <meta content="JavaScript" name="vs_defaultClientScript"> > <meta content="http://schemas.microsoft.com/intellisense/ie5" > name="vs_targetSchema"> > > > <script language =javascript > > function CopyClick() { > ChartFX1.Chart.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > } > </script> > </HEAD> > <body MS_POSITIONING="GridLayout" id="Body1"> > <!-- Add table heading and column headings --> > <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" > align="center" border="0"> > <tr vAlign="top"> > <tr> > <td class="FundHeading3">ECM Attribution Graphs</td> > </tr> > </table> > <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" > align="center" border="0"> > <tr vAlign="top"> > <td><br> > <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" > align="center" border="0"> > <tr> > </tr> > <tr> > <td class="FundHeading" style="HEIGHT: 25px" align="left" > colSpan="8"></td> > </tr> > <tr> > <td class="FundHeading" align="left" colSpan="8">Monthly Increment to > Euribor (by > Asset Class)</td> > </tr> > </table> > </td> > </tr> > </table> > <br> > <form id="Form1" method="post" runat="server"> > > ------------------Chart tag starts-------------------------------- > <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; LEFT: 24px; > POSITION: absolute; TOP: 168px" > runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" > BorderColor="#000000" NValues="8" > BackColor="Info" Width="936px" Height="500px" SerLegBox="True" > ImgHeight="500" ImgWidth="900" > InsideColor="Info" WallWidth="2" MainClient="False" BorderEffect="None" > ImageMode="Clipped" > ToolBar="True" ImgQuality="100" EnableViewState="False" > AllowEdit="False"> > <AxisY Gridlines="True" AlternateColor="Black" Font="Arial Unicode MS, > 8.25pt" TextColor="Black" > Title-Text="Basis Points" Title-TextColor="Black"> > <LabelsFormat Decimals="0"></LabelsFormat> > <MinorGrid Color="Black"></MinorGrid> > <Grid Color="Black"></Grid> > <Line Color="Black"></Line> > </AxisY> > <Titles> > <chartfx:TitleDockable></chartfx:TitleDockable> > </Titles> > <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> > <DataEditorObj Interlaced="Horizontal" > Alignment="Center"></DataEditorObj> > <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" > TickMark="None" Step="1" > Title-Text="Time (months)" Title-TextColor="Black"> > <MinorGrid Color="Black"></MinorGrid> > <Grid Color="Black"></Grid> > <Line Color="Black"></Line> > </AxisX> > <Extensions> > <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> > </Extensions> > </CHARTFX:CHART> > > -----------------------------Chart tags > end--------------------------------------- > <p></p> > <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: 656px; > POSITION: absolute; TOP: 144px" > runat="server" Width="202px" Height="22px" > NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative Asset Class > graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" style="Z-INDEX: > 103; LEFT: 368px; POSITION: absolute; TOP: 136px" > runat="server" Width="206px" DataValueField='"CCE"'> > <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> > <asp:ListItem Value="DEC">DEC</asp:ListItem> > <asp:ListItem Value="ECL">ECL</asp:ListItem> > <asp:ListItem Value="IGE">IGE</asp:ListItem> > </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; LEFT: > 576px; POSITION: absolute; TOP: 136px" runat="server" > Width="56px" Text="Refresh"></asp:button></p> > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > title="Copy As A Metafile" > type="button">Copy As a Metafile</button></form> > </body> > </HTML> > > Elvina > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:pV$x83f1DHA.3808@WEBSERVER1... > > Please note that if you are using MainClient (new ChartFX installations > will > > default to use this since it improves performance) you will need to get > the > > chart by using ChartFX1.Chart. This is because when using MainClient the > > object that gets rendered into the HTML page is a MainClient object that > > will ultimately create a chart. > > > > About the button. It needs to be a client-side button. An HTML button > should > > work fine. > > > > If you continue having problems please post the <OBJECT> tag in your page > > (View Source) that relates to the chart. > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > news:YR5wdRf1DHA.3512@WEBSERVER1... > > > I have been stuck on a problem, which seems simple, but I cant seem to > > solve > > > > > > Im working on a button for a webform called Copy as a metafile, the aim > > this > > > when the user clicks on this button is the export ChartFX1 (its what I > > > called my chart) as a metafile onto the user I have been putting simple > > > script on the HTML page where this button is: > > > > > > > > > <script language =javascript > > > > function CopyClick() { > > > ChartFX1.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > > > } > > > </script> > > > > > > Would the button be html button or server button? I have a HTML button > and > > > the OnClick = CopyClick(), see below > > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > title="Copy As A Metafile" > > > type="button">Copy As a Metafile</button></form> > > > > > > I dont have anything on the server side. > > > IM getting an error, just says error on page. It seems to not know what > > > ChartFX1, but it is what I called my chart in the HTML. What am I doing > > > wrong? > > > > > > Can you advise me how to get working? I have tried searching for > solutions > > > and alsorts, with no success. Appreciated. > > > > > > Also I have full trust on .net settings. > > > > > > TIA Elvina > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 9, 2004 Author Report Share Posted January 9, 2004 ok Here is the <OBJECT > tag <object id="ChartFX1" classid="/ChartFX6/Download/ChartFX.MainClient.dll#SoftwareFX.ChartFX.Intern et.MainClient" WIDTH="800px" HEIGHT="500px" style="Z-INDEX=101; LEFT=24px; POSITION=absolute; TOP=168px; " > <PARAM NAME="DataPath" VALUE="/ChartFX6/Temp/CFT0109_09545415F0.chw"> <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, Version=6.0.1353.24751, Culture=neutral, PublicKeyToken=a1878e2052c08dce"> <PARAM NAME="ClassTarget" VALUE="SoftwareFX.ChartFX.Internet.Client.Chart"> </object> "SoftwareFX Support" <support@softwarefx.com> wrote in message news:cX%23wKYh1DHA.3512@WEBSERVER1... > To get the OBJECT tag you need to hit your page from your browser and select > "View - Source" > > -- > Regards, > > JC > Software FX Support > "Elvina Lam" <elam@europeancredit.com> wrote in message > news:Kq9KE$f1DHA.3512@WEBSERVER1... > > I have just changed it to ChartFX1.Chart, still not working. > > > > Here is the html for that page. I noticed I dont have a <OBJECT> tag, why? > > (I have indicated where the chart tag starts and ends) Thanks > > > > <HTML> > > <HEAD> > > <title>ECM Attribution Graphs</title> > > <LINK href="includeFT/reports.css" type="text/css" rel="stylesheet"> > > <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> > > <meta content="C#" name="CODE_LANGUAGE"> > > <meta content="JavaScript" name="vs_defaultClientScript"> > > <meta content="http://schemas.microsoft.com/intellisense/ie5" > > name="vs_targetSchema"> > > > > > > <script language =javascript > > > function CopyClick() { > > ChartFX1.Chart.Export( FileFormat.Metafile, > @"c:\\TEMP\\ATTGraphs1.emf") > > } > > </script> > > </HEAD> > > <body MS_POSITIONING="GridLayout" id="Body1"> > > <!-- Add table heading and column headings --> > > <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" > > align="center" border="0"> > > <tr vAlign="top"> > > <tr> > > <td class="FundHeading3">ECM Attribution Graphs</td> > > </tr> > > </table> > > <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" > > align="center" border="0"> > > <tr vAlign="top"> > > <td><br> > > <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" > > align="center" border="0"> > > <tr> > > </tr> > > <tr> > > <td class="FundHeading" style="HEIGHT: 25px" align="left" > > colSpan="8"></td> > > </tr> > > <tr> > > <td class="FundHeading" align="left" colSpan="8">Monthly Increment > to > > Euribor (by > > Asset Class)</td> > > </tr> > > </table> > > </td> > > </tr> > > </table> > > <br> > > <form id="Form1" method="post" runat="server"> > > > > ------------------Chart tag starts-------------------------------- > > <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; LEFT: > 24px; > > POSITION: absolute; TOP: 168px" > > runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" > > BorderColor="#000000" NValues="8" > > BackColor="Info" Width="936px" Height="500px" SerLegBox="True" > > ImgHeight="500" ImgWidth="900" > > InsideColor="Info" WallWidth="2" MainClient="False" > BorderEffect="None" > > ImageMode="Clipped" > > ToolBar="True" ImgQuality="100" EnableViewState="False" > > AllowEdit="False"> > > <AxisY Gridlines="True" AlternateColor="Black" Font="Arial Unicode MS, > > 8.25pt" TextColor="Black" > > Title-Text="Basis Points" Title-TextColor="Black"> > > <LabelsFormat Decimals="0"></LabelsFormat> > > <MinorGrid Color="Black"></MinorGrid> > > <Grid Color="Black"></Grid> > > <Line Color="Black"></Line> > > </AxisY> > > <Titles> > > <chartfx:TitleDockable></chartfx:TitleDockable> > > </Titles> > > <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> > > <DataEditorObj Interlaced="Horizontal" > > Alignment="Center"></DataEditorObj> > > <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" > > TickMark="None" Step="1" > > Title-Text="Time (months)" Title-TextColor="Black"> > > <MinorGrid Color="Black"></MinorGrid> > > <Grid Color="Black"></Grid> > > <Line Color="Black"></Line> > > </AxisX> > > <Extensions> > > <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" > > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> > > </Extensions> > > </CHARTFX:CHART> > > > > -----------------------------Chart tags > > end--------------------------------------- > > <p></p> > > <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: 656px; > > POSITION: absolute; TOP: 144px" > > runat="server" Width="202px" Height="22px" > > NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative Asset > Class > > graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" style="Z-INDEX: > > 103; LEFT: 368px; POSITION: absolute; TOP: 136px" > > runat="server" Width="206px" DataValueField='"CCE"'> > > <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> > > <asp:ListItem Value="DEC">DEC</asp:ListItem> > > <asp:ListItem Value="ECL">ECL</asp:ListItem> > > <asp:ListItem Value="IGE">IGE</asp:ListItem> > > </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; LEFT: > > 576px; POSITION: absolute; TOP: 136px" runat="server" > > Width="56px" Text="Refresh"></asp:button></p> > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > title="Copy As A Metafile" > > type="button">Copy As a Metafile</button></form> > > </body> > > </HTML> > > > > Elvina > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:pV$x83f1DHA.3808@WEBSERVER1... > > > Please note that if you are using MainClient (new ChartFX installations > > will > > > default to use this since it improves performance) you will need to get > > the > > > chart by using ChartFX1.Chart. This is because when using MainClient the > > > object that gets rendered into the HTML page is a MainClient object that > > > will ultimately create a chart. > > > > > > About the button. It needs to be a client-side button. An HTML button > > should > > > work fine. > > > > > > If you continue having problems please post the <OBJECT> tag in your > page > > > (View Source) that relates to the chart. > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > news:YR5wdRf1DHA.3512@WEBSERVER1... > > > > I have been stuck on a problem, which seems simple, but I cant seem to > > > solve > > > > > > > > Im working on a button for a webform called Copy as a metafile, the > aim > > > this > > > > when the user clicks on this button is the export ChartFX1 (its what I > > > > called my chart) as a metafile onto the user I have been putting > simple > > > > script on the HTML page where this button is: > > > > > > > > > > > > <script language =javascript > > > > > function CopyClick() { > > > > ChartFX1.Export( FileFormat.Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > > > > } > > > > </script> > > > > > > > > Would the button be html button or server button? I have a HTML button > > and > > > > the OnClick = CopyClick(), see below > > > > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > > title="Copy As A Metafile" > > > > type="button">Copy As a Metafile</button></form> > > > > > > > > I dont have anything on the server side. > > > > IM getting an error, just says error on page. It seems to not know > what > > > > ChartFX1, but it is what I called my chart in the HTML. What am I > doing > > > > wrong? > > > > > > > > Can you advise me how to get working? I have tried searching for > > solutions > > > > and alsorts, with no success. Appreciated. > > > > > > > > Also I have full trust on .net settings. > > > > > > > > TIA Elvina > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 9, 2004 Report Share Posted January 9, 2004 I am not sure if IE will support the use of enumerations in your code (FileFormat.Metafile), please try with 4 (bitmap) or 5 (metafile). -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:PlBRPbp1DHA.3512@WEBSERVER1... > ok Here is the <OBJECT > tag > > <object id="ChartFX1" > > classid="/ChartFX6/Download/ChartFX.MainClient.dll#SoftwareFX.ChartFX.Intern > et.MainClient" > WIDTH="800px" HEIGHT="500px" style="Z-INDEX=101; LEFT=24px; > POSITION=absolute; TOP=168px; " > > <PARAM NAME="DataPath" VALUE="/ChartFX6/Temp/CFT0109_09545415F0.chw"> > <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, > Version=6.0.1353.24751, Culture=neutral, PublicKeyToken=a1878e2052c08dce"> > <PARAM NAME="ClassTarget" VALUE="SoftwareFX.ChartFX.Internet.Client.Chart"> > </object> > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:cX%23wKYh1DHA.3512@WEBSERVER1... > > To get the OBJECT tag you need to hit your page from your browser and > select > > "View - Source" > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > news:Kq9KE$f1DHA.3512@WEBSERVER1... > > > I have just changed it to ChartFX1.Chart, still not working. > > > > > > Here is the html for that page. I noticed I dont have a <OBJECT> tag, > why? > > > (I have indicated where the chart tag starts and ends) Thanks > > > > > > <HTML> > > > <HEAD> > > > <title>ECM Attribution Graphs</title> > > > <LINK href="includeFT/reports.css" type="text/css" rel="stylesheet"> > > > <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> > > > <meta content="C#" name="CODE_LANGUAGE"> > > > <meta content="JavaScript" name="vs_defaultClientScript"> > > > <meta content="http://schemas.microsoft.com/intellisense/ie5" > > > name="vs_targetSchema"> > > > > > > > > > <script language =javascript > > > > function CopyClick() { > > > ChartFX1.Chart.Export( FileFormat.Metafile, > > @"c:\\TEMP\\ATTGraphs1.emf") > > > } > > > </script> > > > </HEAD> > > > <body MS_POSITIONING="GridLayout" id="Body1"> > > > <!-- Add table heading and column headings --> > > > <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" > > > align="center" border="0"> > > > <tr vAlign="top"> > > > <tr> > > > <td class="FundHeading3">ECM Attribution Graphs</td> > > > </tr> > > > </table> > > > <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" > > > align="center" border="0"> > > > <tr vAlign="top"> > > > <td><br> > > > <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" > > > align="center" border="0"> > > > <tr> > > > </tr> > > > <tr> > > > <td class="FundHeading" style="HEIGHT: 25px" align="left" > > > colSpan="8"></td> > > > </tr> > > > <tr> > > > <td class="FundHeading" align="left" colSpan="8">Monthly > Increment > > to > > > Euribor (by > > > Asset Class)</td> > > > </tr> > > > </table> > > > </td> > > > </tr> > > > </table> > > > <br> > > > <form id="Form1" method="post" runat="server"> > > > > > > ------------------Chart tag starts-------------------------------- > > > <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; LEFT: > > 24px; > > > POSITION: absolute; TOP: 168px" > > > runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" > > > BorderColor="#000000" NValues="8" > > > BackColor="Info" Width="936px" Height="500px" SerLegBox="True" > > > ImgHeight="500" ImgWidth="900" > > > InsideColor="Info" WallWidth="2" MainClient="False" > > BorderEffect="None" > > > ImageMode="Clipped" > > > ToolBar="True" ImgQuality="100" EnableViewState="False" > > > AllowEdit="False"> > > > <AxisY Gridlines="True" AlternateColor="Black" Font="Arial Unicode > MS, > > > 8.25pt" TextColor="Black" > > > Title-Text="Basis Points" Title-TextColor="Black"> > > > <LabelsFormat Decimals="0"></LabelsFormat> > > > <MinorGrid Color="Black"></MinorGrid> > > > <Grid Color="Black"></Grid> > > > <Line Color="Black"></Line> > > > </AxisY> > > > <Titles> > > > <chartfx:TitleDockable></chartfx:TitleDockable> > > > </Titles> > > > <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> > > > <DataEditorObj Interlaced="Horizontal" > > > Alignment="Center"></DataEditorObj> > > > <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" > > > TickMark="None" Step="1" > > > Title-Text="Time (months)" Title-TextColor="Black"> > > > <MinorGrid Color="Black"></MinorGrid> > > > <Grid Color="Black"></Grid> > > > <Line Color="Black"></Line> > > > </AxisX> > > > <Extensions> > > > <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" > > > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> > > > </Extensions> > > > </CHARTFX:CHART> > > > > > > -----------------------------Chart tags > > > end--------------------------------------- > > > <p></p> > > > <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: 656px; > > > POSITION: absolute; TOP: 144px" > > > runat="server" Width="202px" Height="22px" > > > NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative Asset > > Class > > > graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" > style="Z-INDEX: > > > 103; LEFT: 368px; POSITION: absolute; TOP: 136px" > > > runat="server" Width="206px" DataValueField='"CCE"'> > > > <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> > > > <asp:ListItem Value="DEC">DEC</asp:ListItem> > > > <asp:ListItem Value="ECL">ECL</asp:ListItem> > > > <asp:ListItem Value="IGE">IGE</asp:ListItem> > > > </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; > LEFT: > > > 576px; POSITION: absolute; TOP: 136px" runat="server" > > > Width="56px" Text="Refresh"></asp:button></p> > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > title="Copy As A Metafile" > > > type="button">Copy As a Metafile</button></form> > > > </body> > > > </HTML> > > > > > > Elvina > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:pV$x83f1DHA.3808@WEBSERVER1... > > > > Please note that if you are using MainClient (new ChartFX > installations > > > will > > > > default to use this since it improves performance) you will need to > get > > > the > > > > chart by using ChartFX1.Chart. This is because when using MainClient > the > > > > object that gets rendered into the HTML page is a MainClient object > that > > > > will ultimately create a chart. > > > > > > > > About the button. It needs to be a client-side button. An HTML button > > > should > > > > work fine. > > > > > > > > If you continue having problems please post the <OBJECT> tag in your > > page > > > > (View Source) that relates to the chart. > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > > news:YR5wdRf1DHA.3512@WEBSERVER1... > > > > > I have been stuck on a problem, which seems simple, but I cant seem > to > > > > solve > > > > > > > > > > Im working on a button for a webform called Copy as a metafile, the > > aim > > > > this > > > > > when the user clicks on this button is the export ChartFX1 (its what > I > > > > > called my chart) as a metafile onto the user I have been putting > > simple > > > > > script on the HTML page where this button is: > > > > > > > > > > > > > > > <script language =javascript > > > > > > function CopyClick() { > > > > > ChartFX1.Export( FileFormat.Metafile, > @"c:\\TEMP\\ATTGraphs1.emf") > > > > > } > > > > > </script> > > > > > > > > > > Would the button be html button or server button? I have a HTML > button > > > and > > > > > the OnClick = CopyClick(), see below > > > > > > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: 120px; > > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > > > title="Copy As A Metafile" > > > > > type="button">Copy As a Metafile</button></form> > > > > > > > > > > I dont have anything on the server side. > > > > > IM getting an error, just says error on page. It seems to not know > > what > > > > > ChartFX1, but it is what I called my chart in the HTML. What am I > > doing > > > > > wrong? > > > > > > > > > > Can you advise me how to get working? I have tried searching for > > > solutions > > > > > and alsorts, with no success. Appreciated. > > > > > > > > > > Also I have full trust on .net settings. > > > > > > > > > > TIA Elvina > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Line.zip Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 12, 2004 Author Report Share Posted January 12, 2004 Just tried ChartFX1.Export(5, @"c:\\TEMP\\ATTGraphs1.emf") ChartFX1.Export(Metafile, @"c:\\TEMP\\ATTGraphs1.emf") ChartFX1.Export(4, @"c:\\TEMP\\ATTGraphs1.emf") None of those work...so how do I get solve this? The aim is just easy...a button that would just copy the graph on users temp drive....what else am I missing? Elvina "SoftwareFX Support" <support@softwarefx.com> wrote in message news:GSmykou1DHA.3008@WEBSERVER1... > I am not sure if IE will support the use of enumerations in your code > (FileFormat.Metafile), please try with 4 (bitmap) or 5 (metafile). > > -- > Regards, > > JC > Software FX Support > "Elvina Lam" <elam@europeancredit.com> wrote in message > news:PlBRPbp1DHA.3512@WEBSERVER1... > > ok Here is the <OBJECT > tag > > > > <object id="ChartFX1" > > > > > classid="/ChartFX6/Download/ChartFX.MainClient.dll#SoftwareFX.ChartFX.Intern > > et.MainClient" > > WIDTH="800px" HEIGHT="500px" style="Z-INDEX=101; LEFT=24px; > > POSITION=absolute; TOP=168px; " > > > <PARAM NAME="DataPath" VALUE="/ChartFX6/Temp/CFT0109_09545415F0.chw"> > > <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, > > Version=6.0.1353.24751, Culture=neutral, PublicKeyToken=a1878e2052c08dce"> > > <PARAM NAME="ClassTarget" > VALUE="SoftwareFX.ChartFX.Internet.Client.Chart"> > > </object> > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:cX%23wKYh1DHA.3512@WEBSERVER1... > > > To get the OBJECT tag you need to hit your page from your browser and > > select > > > "View - Source" > > > > > > -- > > > Regards, > > > > > > JC > > > Software FX Support > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > news:Kq9KE$f1DHA.3512@WEBSERVER1... > > > > I have just changed it to ChartFX1.Chart, still not working. > > > > > > > > Here is the html for that page. I noticed I dont have a <OBJECT> tag, > > why? > > > > (I have indicated where the chart tag starts and ends) Thanks > > > > > > > > <HTML> > > > > <HEAD> > > > > <title>ECM Attribution Graphs</title> > > > > <LINK href="includeFT/reports.css" type="text/css" rel="stylesheet"> > > > > <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> > > > > <meta content="C#" name="CODE_LANGUAGE"> > > > > <meta content="JavaScript" name="vs_defaultClientScript"> > > > > <meta content="http://schemas.microsoft.com/intellisense/ie5" > > > > name="vs_targetSchema"> > > > > > > > > > > > > <script language =javascript > > > > > function CopyClick() { > > > > ChartFX1.Chart.Export( FileFormat.Metafile, > > > @"c:\\TEMP\\ATTGraphs1.emf") > > > > } > > > > </script> > > > > </HEAD> > > > > <body MS_POSITIONING="GridLayout" id="Body1"> > > > > <!-- Add table heading and column headings --> > > > > <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" > > > > align="center" border="0"> > > > > <tr vAlign="top"> > > > > <tr> > > > > <td class="FundHeading3">ECM Attribution Graphs</td> > > > > </tr> > > > > </table> > > > > <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" > > > > align="center" border="0"> > > > > <tr vAlign="top"> > > > > <td><br> > > > > <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" > > > > align="center" border="0"> > > > > <tr> > > > > </tr> > > > > <tr> > > > > <td class="FundHeading" style="HEIGHT: 25px" align="left" > > > > colSpan="8"></td> > > > > </tr> > > > > <tr> > > > > <td class="FundHeading" align="left" colSpan="8">Monthly > > Increment > > > to > > > > Euribor (by > > > > Asset Class)</td> > > > > </tr> > > > > </table> > > > > </td> > > > > </tr> > > > > </table> > > > > <br> > > > > <form id="Form1" method="post" runat="server"> > > > > > > > > ------------------Chart tag starts-------------------------------- > > > > <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; LEFT: > > > 24px; > > > > POSITION: absolute; TOP: 168px" > > > > runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" > > > > BorderColor="#000000" NValues="8" > > > > BackColor="Info" Width="936px" Height="500px" SerLegBox="True" > > > > ImgHeight="500" ImgWidth="900" > > > > InsideColor="Info" WallWidth="2" MainClient="False" > > > BorderEffect="None" > > > > ImageMode="Clipped" > > > > ToolBar="True" ImgQuality="100" EnableViewState="False" > > > > AllowEdit="False"> > > > > <AxisY Gridlines="True" AlternateColor="Black" Font="Arial Unicode > > MS, > > > > 8.25pt" TextColor="Black" > > > > Title-Text="Basis Points" Title-TextColor="Black"> > > > > <LabelsFormat Decimals="0"></LabelsFormat> > > > > <MinorGrid Color="Black"></MinorGrid> > > > > <Grid Color="Black"></Grid> > > > > <Line Color="Black"></Line> > > > > </AxisY> > > > > <Titles> > > > > <chartfx:TitleDockable></chartfx:TitleDockable> > > > > </Titles> > > > > <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> > > > > <DataEditorObj Interlaced="Horizontal" > > > > Alignment="Center"></DataEditorObj> > > > > <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" > > > > TickMark="None" Step="1" > > > > Title-Text="Time (months)" Title-TextColor="Black"> > > > > <MinorGrid Color="Black"></MinorGrid> > > > > <Grid Color="Black"></Grid> > > > > <Line Color="Black"></Line> > > > > </AxisX> > > > > <Extensions> > > > > <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" > > > > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> > > > > </Extensions> > > > > </CHARTFX:CHART> > > > > > > > > -----------------------------Chart tags > > > > end--------------------------------------- > > > > <p></p> > > > > <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: 656px; > > > > POSITION: absolute; TOP: 144px" > > > > runat="server" Width="202px" Height="22px" > > > > NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative Asset > > > Class > > > > graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" > > style="Z-INDEX: > > > > 103; LEFT: 368px; POSITION: absolute; TOP: 136px" > > > > runat="server" Width="206px" DataValueField='"CCE"'> > > > > <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> > > > > <asp:ListItem Value="DEC">DEC</asp:ListItem> > > > > <asp:ListItem Value="ECL">ECL</asp:ListItem> > > > > <asp:ListItem Value="IGE">IGE</asp:ListItem> > > > > </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; > > LEFT: > > > > 576px; POSITION: absolute; TOP: 136px" runat="server" > > > > Width="56px" Text="Refresh"></asp:button></p> > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: > 120px; > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > > title="Copy As A Metafile" > > > > type="button">Copy As a Metafile</button></form> > > > > </body> > > > > </HTML> > > > > > > > > Elvina > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > news:pV$x83f1DHA.3808@WEBSERVER1... > > > > > Please note that if you are using MainClient (new ChartFX > > installations > > > > will > > > > > default to use this since it improves performance) you will need to > > get > > > > the > > > > > chart by using ChartFX1.Chart. This is because when using MainClient > > the > > > > > object that gets rendered into the HTML page is a MainClient object > > that > > > > > will ultimately create a chart. > > > > > > > > > > About the button. It needs to be a client-side button. An HTML > button > > > > should > > > > > work fine. > > > > > > > > > > If you continue having problems please post the <OBJECT> tag in your > > > page > > > > > (View Source) that relates to the chart. > > > > > > > > > > -- > > > > > Regards, > > > > > > > > > > JC > > > > > Software FX Support > > > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > > > news:YR5wdRf1DHA.3512@WEBSERVER1... > > > > > > I have been stuck on a problem, which seems simple, but I cant > seem > > to > > > > > solve > > > > > > > > > > > > Im working on a button for a webform called Copy as a metafile, > the > > > aim > > > > > this > > > > > > when the user clicks on this button is the export ChartFX1 (its > what > > I > > > > > > called my chart) as a metafile onto the user I have been putting > > > simple > > > > > > script on the HTML page where this button is: > > > > > > > > > > > > > > > > > > <script language =javascript > > > > > > > function CopyClick() { > > > > > > ChartFX1.Export( FileFormat.Metafile, > > @"c:\\TEMP\\ATTGraphs1.emf") > > > > > > } > > > > > > </script> > > > > > > > > > > > > Would the button be html button or server button? I have a HTML > > button > > > > and > > > > > > the OnClick = CopyClick(), see below > > > > > > > > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: > 120px; > > > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > > > > title="Copy As A Metafile" > > > > > > type="button">Copy As a Metafile</button></form> > > > > > > > > > > > > I dont have anything on the server side. > > > > > > IM getting an error, just says error on page. It seems to not know > > > what > > > > > > ChartFX1, but it is what I called my chart in the HTML. What am I > > > doing > > > > > > wrong? > > > > > > > > > > > > Can you advise me how to get working? I have tried searching for > > > > solutions > > > > > > and alsorts, with no success. Appreciated. > > > > > > > > > > > > Also I have full trust on .net settings. > > > > > > > > > > > > TIA Elvina > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 14, 2004 Author Report Share Posted January 14, 2004 Anymore details on how to solve this problem? Elvina "Elvina Lam" <elam@europeancredit.com> wrote in message news:4ZEMyJR2DHA.3512@WEBSERVER1... > Just tried > ChartFX1.Export(5, @"c:\\TEMP\\ATTGraphs1.emf") > ChartFX1.Export(Metafile, @"c:\\TEMP\\ATTGraphs1.emf") > ChartFX1.Export(4, @"c:\\TEMP\\ATTGraphs1.emf") > > None of those work...so how do I get solve this? The aim is just easy...a > button that would just copy the graph on users temp drive....what else am I > missing? > > Elvina > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:GSmykou1DHA.3008@WEBSERVER1... > > I am not sure if IE will support the use of enumerations in your code > > (FileFormat.Metafile), please try with 4 (bitmap) or 5 (metafile). > > > > -- > > Regards, > > > > JC > > Software FX Support > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > news:PlBRPbp1DHA.3512@WEBSERVER1... > > > ok Here is the <OBJECT > tag > > > > > > <object id="ChartFX1" > > > > > > > > > classid="/ChartFX6/Download/ChartFX.MainClient.dll#SoftwareFX.ChartFX.Intern > > > et.MainClient" > > > WIDTH="800px" HEIGHT="500px" style="Z-INDEX=101; LEFT=24px; > > > POSITION=absolute; TOP=168px; " > > > > <PARAM NAME="DataPath" VALUE="/ChartFX6/Temp/CFT0109_09545415F0.chw"> > > > <PARAM NAME="AssemblyTarget" VALUE="ChartFX.Internet.Client, > > > Version=6.0.1353.24751, Culture=neutral, > PublicKeyToken=a1878e2052c08dce"> > > > <PARAM NAME="ClassTarget" > > VALUE="SoftwareFX.ChartFX.Internet.Client.Chart"> > > > </object> > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > news:cX%23wKYh1DHA.3512@WEBSERVER1... > > > > To get the OBJECT tag you need to hit your page from your browser and > > > select > > > > "View - Source" > > > > > > > > -- > > > > Regards, > > > > > > > > JC > > > > Software FX Support > > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > > news:Kq9KE$f1DHA.3512@WEBSERVER1... > > > > > I have just changed it to ChartFX1.Chart, still not working. > > > > > > > > > > Here is the html for that page. I noticed I dont have a <OBJECT> > tag, > > > why? > > > > > (I have indicated where the chart tag starts and ends) Thanks > > > > > > > > > > <HTML> > > > > > <HEAD> > > > > > <title>ECM Attribution Graphs</title> > > > > > <LINK href="includeFT/reports.css" type="text/css" > rel="stylesheet"> > > > > > <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> > > > > > <meta content="C#" name="CODE_LANGUAGE"> > > > > > <meta content="JavaScript" name="vs_defaultClientScript"> > > > > > <meta content="http://schemas.microsoft.com/intellisense/ie5" > > > > > name="vs_targetSchema"> > > > > > > > > > > > > > > > <script language =javascript > > > > > > function CopyClick() { > > > > > ChartFX1.Chart.Export( FileFormat.Metafile, > > > > @"c:\\TEMP\\ATTGraphs1.emf") > > > > > } > > > > > </script> > > > > > </HEAD> > > > > > <body MS_POSITIONING="GridLayout" id="Body1"> > > > > > <!-- Add table heading and column headings --> > > > > > <table id="Table1" cellSpacing="0" cellPadding="6" width="95%" > > > > > align="center" border="0"> > > > > > <tr vAlign="top"> > > > > > <tr> > > > > > <td class="FundHeading3">ECM Attribution Graphs</td> > > > > > </tr> > > > > > </table> > > > > > <table id="Table2" cellSpacing="0" cellPadding="0" width="95%" > > > > > align="center" border="0"> > > > > > <tr vAlign="top"> > > > > > <td><br> > > > > > <table id="Table3" cellSpacing="1" cellPadding="3" width="100%" > > > > > align="center" border="0"> > > > > > <tr> > > > > > </tr> > > > > > <tr> > > > > > <td class="FundHeading" style="HEIGHT: 25px" align="left" > > > > > colSpan="8"></td> > > > > > </tr> > > > > > <tr> > > > > > <td class="FundHeading" align="left" colSpan="8">Monthly > > > Increment > > > > to > > > > > Euribor (by > > > > > Asset Class)</td> > > > > > </tr> > > > > > </table> > > > > > </td> > > > > > </tr> > > > > > </table> > > > > > <br> > > > > > <form id="Form1" method="post" runat="server"> > > > > > > > > > > ------------------Chart tag starts-------------------------------- > > > > > <CHARTFX:CHART id="Chart1" name="Chart1" style="Z-INDEX: 101; > LEFT: > > > > 24px; > > > > > POSITION: absolute; TOP: 168px" > > > > > runat="server" HtmlTag=".NET" NSeries="4" Stacked="Normal" > > > > > BorderColor="#000000" NValues="8" > > > > > BackColor="Info" Width="936px" Height="500px" SerLegBox="True" > > > > > ImgHeight="500" ImgWidth="900" > > > > > InsideColor="Info" WallWidth="2" MainClient="False" > > > > BorderEffect="None" > > > > > ImageMode="Clipped" > > > > > ToolBar="True" ImgQuality="100" EnableViewState="False" > > > > > AllowEdit="False"> > > > > > <AxisY Gridlines="True" AlternateColor="Black" Font="Arial > Unicode > > > MS, > > > > > 8.25pt" TextColor="Black" > > > > > Title-Text="Basis Points" Title-TextColor="Black"> > > > > > <LabelsFormat Decimals="0"></LabelsFormat> > > > > > <MinorGrid Color="Black"></MinorGrid> > > > > > <Grid Color="Black"></Grid> > > > > > <Line Color="Black"></Line> > > > > > </AxisY> > > > > > <Titles> > > > > > <chartfx:TitleDockable></chartfx:TitleDockable> > > > > > </Titles> > > > > > <SerLegBoxObj TextColor="Black" Docked="Bottom"></SerLegBoxObj> > > > > > <DataEditorObj Interlaced="Horizontal" > > > > > Alignment="Center"></DataEditorObj> > > > > > <AxisX Font="Arial, 8.25pt" LabelAngle="45" TextColor="Black" > > > > > TickMark="None" Step="1" > > > > > Title-Text="Time (months)" Title-TextColor="Black"> > > > > > <MinorGrid Color="Black"></MinorGrid> > > > > > <Grid Color="Black"></Grid> > > > > > <Line Color="Black"></Line> > > > > > </AxisX> > > > > > <Extensions> > > > > > <SoftwareFX.ChartFX.DefaultBorder Color="ActiveCaptionText" > > > > > AssemblyName="ChartFX.Base"></SoftwareFX.ChartFX.DefaultBorder> > > > > > </Extensions> > > > > > </CHARTFX:CHART> > > > > > > > > > > -----------------------------Chart tags > > > > > end--------------------------------------- > > > > > <p></p> > > > > > <p><asp:hyperlink id="HyperLink1" style="Z-INDEX: 102; LEFT: > 656px; > > > > > POSITION: absolute; TOP: 144px" > > > > > runat="server" Width="202px" Height="22px" > > > > > NavigateUrl="AttributionGraph2.aspx" ForeColor="Blue">Cumulative > Asset > > > > Class > > > > > graph</asp:hyperlink><asp:dropdownlist id="DropDownList1" > > > style="Z-INDEX: > > > > > 103; LEFT: 368px; POSITION: absolute; TOP: 136px" > > > > > runat="server" Width="206px" DataValueField='"CCE"'> > > > > > <asp:ListItem Value="CCE" Selected="True">CCE</asp:ListItem> > > > > > <asp:ListItem Value="DEC">DEC</asp:ListItem> > > > > > <asp:ListItem Value="ECL">ECL</asp:ListItem> > > > > > <asp:ListItem Value="IGE">IGE</asp:ListItem> > > > > > </asp:dropdownlist><asp:button id="Button1" style="Z-INDEX: 104; > > > LEFT: > > > > > 576px; POSITION: absolute; TOP: 136px" runat="server" > > > > > Width="56px" Text="Refresh"></asp:button></p> > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: > > 120px; > > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > > Width="128px" Text="Copy As A Metafile" OnClick="CopyClick()" > > > > > title="Copy As A Metafile" > > > > > type="button">Copy As a Metafile</button></form> > > > > > </body> > > > > > </HTML> > > > > > > > > > > Elvina > > > > > > > > > > > > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > > > > news:pV$x83f1DHA.3808@WEBSERVER1... > > > > > > Please note that if you are using MainClient (new ChartFX > > > installations > > > > > will > > > > > > default to use this since it improves performance) you will need > to > > > get > > > > > the > > > > > > chart by using ChartFX1.Chart. This is because when using > MainClient > > > the > > > > > > object that gets rendered into the HTML page is a MainClient > object > > > that > > > > > > will ultimately create a chart. > > > > > > > > > > > > About the button. It needs to be a client-side button. An HTML > > button > > > > > should > > > > > > work fine. > > > > > > > > > > > > If you continue having problems please post the <OBJECT> tag in > your > > > > page > > > > > > (View Source) that relates to the chart. > > > > > > > > > > > > -- > > > > > > Regards, > > > > > > > > > > > > JC > > > > > > Software FX Support > > > > > > "Elvina Lam" <elam@europeancredit.com> wrote in message > > > > > > news:YR5wdRf1DHA.3512@WEBSERVER1... > > > > > > > I have been stuck on a problem, which seems simple, but I cant > > seem > > > to > > > > > > solve > > > > > > > > > > > > > > Im working on a button for a webform called Copy as a metafile, > > the > > > > aim > > > > > > this > > > > > > > when the user clicks on this button is the export ChartFX1 (its > > what > > > I > > > > > > > called my chart) as a metafile onto the user I have been putting > > > > simple > > > > > > > script on the HTML page where this button is: > > > > > > > > > > > > > > > > > > > > > <script language =javascript > > > > > > > > function CopyClick() { > > > > > > > ChartFX1.Export( FileFormat.Metafile, > > > @"c:\\TEMP\\ATTGraphs1.emf") > > > > > > > } > > > > > > > </script> > > > > > > > > > > > > > > Would the button be html button or server button? I have a HTML > > > button > > > > > and > > > > > > > the OnClick = CopyClick(), see below > > > > > > > > > > > > > > <button id="btnCopy" style="Z-INDEX: 105; LEFT: 240px; WIDTH: > > 120px; > > > > > > > POSITION: absolute; TOP: 136px; HEIGHT: 24px" > > > > > > > Width="128px" Text="Copy As A Metafile" > OnClick="CopyClick()" > > > > > > > title="Copy As A Metafile" > > > > > > > type="button">Copy As a Metafile</button></form> > > > > > > > > > > > > > > I dont have anything on the server side. > > > > > > > IM getting an error, just says error on page. It seems to not > know > > > > what > > > > > > > ChartFX1, but it is what I called my chart in the HTML. What am > I > > > > doing > > > > > > > wrong? > > > > > > > > > > > > > > Can you advise me how to get working? I have tried searching for > > > > > solutions > > > > > > > and alsorts, with no success. Appreciated. > > > > > > > > > > > > > > Also I have full trust on .net settings. > > > > > > > > > > > > > > TIA Elvina > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 19, 2004 Report Share Posted January 19, 2004 The problem here seems to be that JavaScript has problem with this method being overloaded and it is trying to math it to the wrong signature. I'm afraid this is a limitation of Java Script that you won't be able to overcome. I've searched all over in MSDN but I couldn't find a reference to this problem. Remember that IE is not really a .NET container, it uses COM to access the component. The conversion of overloaded methods doesn't seem to be documented anywhere. Other methods that are not overloaded work just fine. For example: Chart1.OpenData(1,1,1); Chart1.CloseData(1); Works without a problem. I will keep looking into MSDN to see if there is a solution. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 21, 2004 Author Report Share Posted January 21, 2004 Thanks! My whole aim is to be able to copy a ChartFX chart as a metafile. The reason why I am creating a button is because, if I used the Copy icon on the default toolbar, on the users machine, it doesnt copy as a metafile, but an unknown picture. however on my pc, I can copy as a enhanced metafile, which I think it is because I have some graphics device which recognises .net clipbroad format, not sure why I have it and not others. Anyway, if there are any other solutions to achieve this copy metafile task, please let me know. Many thanks Elvina "SoftwareFX Support" <support@softwarefx.com> wrote in message news:SHwnX0q3DHA.496@webserver1.softwarefx.com... > The problem here seems to be that JavaScript has problem with this method > being overloaded and it is trying to math it to the wrong signature. > > I'm afraid this is a limitation of Java Script that you won't be able to > overcome. I've searched all over in MSDN but I couldn't find a reference to > this problem. Remember that IE is not really a .NET container, it uses COM > to access the component. The conversion of overloaded methods doesn't seem > to be documented anywhere. > > Other methods that are not overloaded work just fine. For example: > > Chart1.OpenData(1,1,1); > Chart1.CloseData(1); > > Works without a problem. > > I will keep looking into MSDN to see if there is a solution. > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2004 Report Share Posted January 21, 2004 When you press the Copy icon on the toolbar and select Metafile from the menu, we will run the same code you are trying to invoke (just copying the metafile to the clipboard instead of a file). If this does not work on the users machine I do not think a file will work either. What OS is the user running ? Have you tried any other machines ? -- Regards, JC Software FX Support "Elvina Lam" <elam@europeancredit.com> wrote in message news:83zRF0C4DHA.2468@webserver3.softwarefx.com... > Thanks! > > My whole aim is to be able to copy a ChartFX chart as a metafile. The reason > why I am creating a button is because, if I used the Copy icon on the > default toolbar, on the users machine, it doesnt copy as a metafile, but an > unknown picture. however on my pc, I can copy as a enhanced metafile, which > I think it is because I have some graphics device which recognises .net > clipbroad format, not sure why I have it and not others. > > Anyway, if there are any other solutions to achieve this copy metafile task, > please let me know. > > Many thanks > > Elvina > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > news:SHwnX0q3DHA.496@webserver1.softwarefx.com... > > The problem here seems to be that JavaScript has problem with this method > > being overloaded and it is trying to math it to the wrong signature. > > > > I'm afraid this is a limitation of Java Script that you won't be able to > > overcome. I've searched all over in MSDN but I couldn't find a reference > to > > this problem. Remember that IE is not really a .NET container, it uses COM > > to access the component. The conversion of overloaded methods doesn't seem > > to be documented anywhere. > > > > Other methods that are not overloaded work just fine. For example: > > > > Chart1.OpenData(1,1,1); > > Chart1.CloseData(1); > > > > Works without a problem. > > > > I will keep looking into MSDN to see if there is a solution. > > > > -- > > FP > > Software FX, Inc. > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2004 Report Share Posted January 21, 2004 I think your problem may be .NET permissions. Please assign Full-Trust to either the chart or in the Zone where the page resides. Exporting a metafile to the clipboard requires FULL trust. You did mention that you had Full Trust but other than that I can not think of another reason. Did you check this in the client computer ? Please also try the following. Enable the "Save As..." button by doing: chart1.ToolBarObj.InsertAt(0,2); chart1.ToolBarObj[0] = (int) CommandID.ImportFile; chart1.ToolBarObj[1] = (int) CommandID.ExportFile; Then, try the Export button and Export as a metafile. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 21, 2004 Author Report Share Posted January 21, 2004 We are all using Win 2000 Im on the latest SP. I have .net framework 1.1 installed as well as 1.0. My colleague who has the same specs on his pc and he tried this. It does copy it to clipboard, but it is recognised as a unknown picture, whereas when I do the same thing, it is a enhanced metafile. My users has the same problem as my colleague. I have been on the Mircosoft knowledge base and found an article 323530 , except I cant seem to get the solution to work. Im not if its a problem with ChartFX or .Net framework or what. Another thing I want to highlight is that, if I open other MS office programs eg Word, Powerchart AFTER I copy the graph using the icon, I end up with unknown picture, when I pasted it into MS office programs. However, if MS programs are opened before I do the copying, it comes out as an Enhanced Windows Metafile. Very strange! Any help, much appreciated. Ive been stuck on this for while. Elvina "SoftwareFX Support" <support@softwarefx.com> wrote in message news:uxrT52C4DHA.2468@webserver3.softwarefx.com... > When you press the Copy icon on the toolbar and select Metafile from the > menu, we will run the same code you are trying to invoke (just copying the > metafile to the clipboard instead of a file). If this does not work on the > users machine I do not think a file will work either. What OS is the user > running ? Have you tried any other machines ? > > -- > Regards, > > JC > Software FX Support > "Elvina Lam" <elam@europeancredit.com> wrote in message > news:83zRF0C4DHA.2468@webserver3.softwarefx.com... > > Thanks! > > > > My whole aim is to be able to copy a ChartFX chart as a metafile. The > reason > > why I am creating a button is because, if I used the Copy icon on the > > default toolbar, on the users machine, it doesnt copy as a metafile, but > an > > unknown picture. however on my pc, I can copy as a enhanced metafile, > which > > I think it is because I have some graphics device which recognises .net > > clipbroad format, not sure why I have it and not others. > > > > Anyway, if there are any other solutions to achieve this copy metafile > task, > > please let me know. > > > > Many thanks > > > > Elvina > > > > "SoftwareFX Support" <support@softwarefx.com> wrote in message > > news:SHwnX0q3DHA.496@webserver1.softwarefx.com... > > > The problem here seems to be that JavaScript has problem with this > method > > > being overloaded and it is trying to math it to the wrong signature. > > > > > > I'm afraid this is a limitation of Java Script that you won't be able to > > > overcome. I've searched all over in MSDN but I couldn't find a reference > > to > > > this problem. Remember that IE is not really a .NET container, it uses > COM > > > to access the component. The conversion of overloaded methods doesn't > seem > > > to be documented anywhere. > > > > > > Other methods that are not overloaded work just fine. For example: > > > > > > Chart1.OpenData(1,1,1); > > > Chart1.CloseData(1); > > > > > > Works without a problem. > > > > > > I will keep looking into MSDN to see if there is a solution. > > > > > > -- > > > FP > > > Software FX, Inc. > > > > > > > > > > > > Link to comment Share on other sites More sharing options...
Software FX Posted January 21, 2004 Report Share Posted January 21, 2004 This is very strange indeed. I honestly don't know what can be causing this problem, specially the fact that opening an office program before exporting makes it work. As for the Microsoft Knowledge Base Article - 323530, we already do that. This is what makes it work in your computer, however, as they say, this requires unmanaged code and therefore you need Full Trust. Exporting to a file, however, does not require this work-around. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
User (Legacy) Posted January 23, 2004 Author Report Share Posted January 23, 2004 I have just put those code in. The Save As works fine on pc and I will test it on others later. So, it is normal to give Full trust on a site? How do I just give Full Trust on the chart only?? I think what I did on my pc...is using Control Panel, Internet Options, Security and just put Full Trust on Trusted and Intranet sites, is that correct?! Thanks Elvina "SoftwareFX Support" <support@softwarefx.com> wrote in message news:xAqcmLE4DHA.2468@webserver3.softwarefx.com... > I think your problem may be .NET permissions. > > Please assign Full-Trust to either the chart or in the Zone where the page > resides. > > Exporting a metafile to the clipboard requires FULL trust. > > You did mention that you had Full Trust but other than that I can not think > of another reason. Did you check this in the client computer ? > > Please also try the following. Enable the "Save As..." button by doing: > > chart1.ToolBarObj.InsertAt(0,2); > > chart1.ToolBarObj[0] = (int) CommandID.ImportFile; > > chart1.ToolBarObj[1] = (int) CommandID.ExportFile; > > Then, try the Export button and Export as a metafile. > > > -- > FP > Software FX, Inc. > > Link to comment Share on other sites More sharing options...
Software FX Posted January 23, 2004 Report Share Posted January 23, 2004 No. It is not "normal" to give full trust to a site, however, as you found in that article, because of a BUG in the .NET framework, the only way to export a Metafile to the clipboard is to go UNMANAGED which requires Full Trust. Exporting to Bitmaps for example is ok in semi-trust environments. Since our control is strong named, you can trust it (using the control panel). Also, you can add your site to "Trusted Sites" and change the .NET permissions for that zone only. I'm afraid I'm not a security expert and can not give you good advice about how to go about this, there is a lot of literature on this from Microsoft and other people. All I can say is that DUE TO A LIMITATION in the .NET framework, exporting to a metafile to the clipboard requires Full Trust, so you have to decide weather to open this door or to use Bitmaps or Export to a file. -- FP Software FX, Inc. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.