Problem with Kchart RRS feed

  • Question

  • Hi everyone

    I have problem when i want change the Kchart.Legend.Location in vbscript. If i change the location my Inernet Explorer return critical error and shoutdown itself. If someone know where the problem is please help.

    Szymon Szczepański
    My code

    <script language="vbscript" type="text/vbscript" event="OnChange" for="cbLegend">

    <OBJECT id="KChart1" height="100%" width="100%" classid="clsid:CA2C1C55-D82C-42AD-957B-E8AA841BFA3D" VIEWASTEXT>

    <PARAM NAME="AutoYAxis" VALUE="0"> 

    <PARAM NAME="BackColor" VALUE="15529206"> 

    <PARAM NAME="BarStyle" VALUE="0">
    <PARAM NAME="CalloutMaxCount" VALUE="30">

    <PARAM NAME="ChartBackColor" VALUE="16777215">
    <PARAM NAME="ChartColorVisible" VALUE="-1">
    <PARAM NAME="ChartPointersVisible" VALUE="-1">
    <PARAM NAME="ChartViewCallOut" VALUE="0">
    <PARAM NAME="ChartViewPointer" VALUE="2">
    <PARAM NAME="ChartViewStyle" VALUE="1">
    <PARAM NAME="DrillThruEnabled" VALUE="0">
    <PARAM NAME="DrillThruMaxRows" VALUE="1000">
    <PARAM NAME="Elevation" VALUE="345">
    <PARAM NAME="GradientDirection" VALUE="0">
    <PARAM NAME="GradientEndColor" VALUE="16054776">
    <PARAM NAME="GradientStartColor" VALUE="9675166">

    <PARAM NAME="GradientVisible" VALUE="0">

    <PARAM NAME="LineWidth" VALUE="2">

    <PARAM NAME="Orthogonal" VALUE="-1"> 

    <PARAM NAME="Percent3d" VALUE="50"> 

    <PARAM NAME="Perspective" VALUE="15"> 

    <PARAM NAME="Rotation" VALUE="345"> 

    <PARAM NAME="View3D" VALUE="0"> 

    <PARAM NAME="ViewType" VALUE="3"> 

    <PARAM NAME="BorderStyle" VALUE="0"> 

    <PARAM NAME="KPAutoExecute" VALUE="0"> 

    <PARAM NAME="KPCaption" VALUE=""> 

    <PARAM NAME="KPCurrentViewType" VALUE="3"> 

    <PARAM NAME="KPDefaultViewType" VALUE="3"> 

    <PARAM NAME="KPDirty" VALUE="0"> 

    <PARAM NAME="KPHelpFile" VALUE=""> 

    <PARAM NAME="Tag" VALUE=""> 

    <PARAM NAME="ToolbarVisible" VALUE="0"> 

    <PARAM NAME="WarnOnBigQuery" VALUE="-1">

    Tuesday, September 23, 2008 10:17 AM

All replies

  • Sorry for the delay on this...not sure how I missed your post, but at any rate, I haven't tried this myself and so am not sure as to the problem.  Is the only issue with the legend location?  That is, if you reference another property from the legend object, does it work without issue?


    Another option might be to just use the entire KProClarityCtrl (which encapsulates all the other controls), and then hide controls as necessary to show what you would like to show.  Using this control saves you having to hook all the other controls together.

    Code Snippet
    <OBJECT CLASSID="clsid:F97F35F6-5E4B-4C39-B588-9D94AC7796F6" id=KProClarity1 height=100% width=100%><SCRIPT LANGUAGE=vbscript>With KProClarity1.CreateBookVisible = True .CreateCubeVisible = True .MenubarVisible = True .OpenBookVisible = True .OpenCubeVisible = True .OptionsFileName = "Options.xml" .PageCaptionVisible = True .StatusBarVisible = True .ToolbarVisible = True .UseBookProperties = False .ExecuteWelcomeDlg '.ExecuteOpenCubeDlg End With



    Wednesday, October 8, 2008 12:02 AM