Change chart object with crosstab base not work

Hi
I use this simple script to change some settings on the chart. Is a chart base on a crosstab, an error occurs: " The chart data fields are not valid.". All other chart not base on a crosstab work fine. Why?
Example:
Public Sub test(ByVal strTempFile As String)
    Dim rpt As New CrystalDecisions.CrystalReports.Engine.ReportDocument
    Dim crROC As CrystalDecisions.ReportAppServer.Controllers.ReportObjectController
    Dim crAppChart As CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject
    Dim crAppChartNew As CrystalDecisions.ReportAppServer.ReportDefModel.ChartObject
    rpt.Load(strTempFile, OpenReportMethod.OpenReportByTempCopy)
    crROC = rpt.ReportClientDocument.ReportDefController.ReportObjectController
    For Each crAppChart In crROC.GetReportObjectsByKind(CrystalDecisions.ReportAppServer.ReportDefModel.CrReportObjectKindEnum.crReportObjectKindChart)
        crAppChartNew = crAppChart.Clone()
        crAppChartNew.ChartStyle.TextOptions.DataLabelFont.Font.Name = "Arial"
        crROC.Modify(crAppChart, crAppChartNew) 'Error: The chart data fields are not valid.
    Next
End Sub

Well, let's stick with one issue. If you want to discuss other issues, create a new thread per each one ([Rules of Engagement|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement]). Re. charts based on xtabs. Try to create the chart in the designer first. Then try to create it in code. Even in the designer, the chart must be quite basic. E.g.; no multiple summaries. Also, can you create a chart in your code on a report that has no xtab?
Ludek

Similar Messages

  • IPad is only works with changer , when I unplug it's not working

    My iPad 3 is only works with changer  when I unplug it's not working and not connecting to the PC even please some help?

    Hi,
    "But it didn't work it's just turning them to black gray scale colors not what i was thinking about."
    If you want it to be colored, you'll need to create a color-palette for the 8bppIndexed bitmaps. The keyword for this process is "Color-Quantization".
    The whole yellow-green pie you get is from the wrong format. If you convert the 32bpp bitmaps to 24 bpp bitmaps, you loose the alpha channel ("transparency"). You can manually set one color to "transparent" with the mMakeTransparent-method
    of the Bitmap class, or simply use gif-images (they are 8bpp with a transparent "key"-color)
    Regards,
      Thorsten

  • ZSAPLINK for Object type = CLAS is not working

    Dear Experts,
    ZSAPLINK for Object type = CLAS is not working. On executing by selecting Export Object to Slinkee with Object type = CLAS and class name, It is giving the dump which is shown in below snapshots. Pls guide me how to resolve this error.
    Thanks
    KH

    From the screenshot, It seems that the object  _renderer did not point to any memory location.
    You can verify this by putting a breakpoint in method IF_IXML~CREATE_RENDERER of class CL_IXML
    If the return value RVAL is initial, this mean there something wrong with the kernel module abkm_iXML_CreateRenderer. If it is, you will have to check with your Basis team to apply some kernel patches.
    Hope it helps. Cheers!

  • I have two yahoo mail accounts. I went to bed and both were accessible on my iphone. I woke up and one was not able to receive any mail. I have deleted the account and added it back and changed the password. Still does not work. Any help?

    I have two yahoo mail accounts. I went to bed and both were accessible on my iphone. I woke up and one was not able to receive any mail. I have deleted the account and added it back and changed the password. Still does not work. Any help?

    Download the yahoo email app, if you already deleted and reinstalled the email account and still have issue.
    This is a known issue with Yahoo email account.

  • Your apple ID has been disabled i have changed my password 6 times still not working

    your apple ID has been disabled i have changed my password 6 times still not working been trying to fix it for 3 hours now itunes is a joke

    Jim,
    This is what I posted on May 15th and it worked like a charm:
    Just got off the phone with Apple Support. I have been working on this same issue for 2 weeks now. I was told to go to www.apple.com/support/itunes. Then under "Get Customer Service" choose ITunes Store Account and Billing. Then choose "Managing your account" option. You will see an option where you can email, choose this. This brings up a form that you need to fill out and submit. Just tell them that you have reviewed your account (assuming you have) and you see no fraudulent activities. Then ask them to enable your account. You should have your account enabled within 24 hours.......at least that is what I was told. I just filled out the form and submitted it.

  • HT4235 iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    iPod nano 6th generation, syncing with audiobooks does not work now, had been working.  Sync test says:  No iPod touch, iPhone, or iPad found.  Connectivity test OK, no physical problems, iTunes shows the iPod.  Any clues what to do?

    Hmm.. Thank you for the response.
    Have you tried using the iPod with another user account or computer, to help narrow down whether the problem lies with the computer, account, or the iPod itself?
    Maybe try reformatting it, using the tools provided by Windows. Instructions on how to reformat your iPod can be found in this article.
    http://www.methodshop.com/gadgets/ipodsupport/erase/index.shtml
    B-rock

  • Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. Thanks.

    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work. Please help. I am getting lots of spelling errors as the MacBook laptop screen is too small. Thank you so much! .

    Contentmom6 wrote:
    Brand new Mac user help please! How do you connect a 17" monitor to the MacBook? I have the monitor plugged into the Mac, but the F8 that I am used to with PC does not work.
    Normally, you just connect the monitor to the MacBook using a VGA adaptor that you can buy from an Apple Store.  Now try System Preferences > Displays > Detect Displays.  You should now be able to select a display mode for the monitor.  If it still doesn't work, then I'd check that everything is properly connected.  I've had problems with colours disappearing due to a faulty connection in the VGA adaptor.
    Bob

  • Windows 8.1 freeze on any hardware scan or changes. USB wireless keyboard mouse not working

    Problem : System Freezes frequently on any hardware scan or changes.
    Symptom : Wireless Keyboard Mouse not working.
    Caused by : VMkbd.sys located in C:\Windows\System32\drivers.
    Issue : VMware player or VMware Workstation installed on Windows 8.1 causes compatibility issue leading to system freeze
    Soultion : Please follow steps below
    Step 1: Start > run > regedit
    Step 2: Locate to this registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4d36e96b-e325-11ce-BFC1-08002BE10318}
    Step 3: On the left side plane, Right click on the registry {4d36e96b-e325-11ce-BFC1-08002BE10318} and then export it as backup. Just to be safe.
    Step 4: Edit the UpperFilters, The value current would be kdbclass vmkbd. Remove the vmkbd. So only value left would be kbdclass.
    Step 5: Restart your system and connect your USB wireless reciever. If all is well it will not freeze your windows now.
    This worked for me. Hope this works for you. Enjoy..!!

    Hi AshishSrivastava,
    Thank you for your sharing and update.
    Besides, I will change this thread type as discussion.
    Best regards
    Michael Shao
    TechNet Community Support

  • Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.

    Text keeps disappearing when I select it to make type at all / make changes / edit. Type tool is not working. I am running CS6 on a Macbook Pro Retina (which I am hating!) 10.9.4 - wish I'd never upgraded.
    Photoshop General Discussion

    The RAM needs specs as shown below.
    Maximum Memory
    16 GB (Actual) 8 GB (Apple)
    Memory Slots
    2 - 204-pin PC-10600 (1333 MHz) DDR3 SO-DIMM

  • FIND with MATCH OFFSET not working

    Hi,
    I have a statement:
    FIND '/' IN <ls_data_package>-/bic/zbib_sysn MATCH OFFSET off2.
    this works in all the case except for when <ls_data_package>-/bic/zbib_sysn = SSULTANA-VMC/.
    (i.e. when /bic/zbib_sysn = USERID-VMC/, here SSULTANA is the user ID)
    *In this case off2 = .
    Value of sy-subrc is 0 after this statement is executed
    Can some one please point out what I am doing wrong.
    Thank you,
    CD
    Edited by: CSD . on Sep 26, 2008 9:53 PM

    >FIND with MATCH OFFSET not working  
    Most unlikely.  More likely is that it isn't doing what you think it should be doing.  Or you're using it incorrectly!
    I can't really follow what your problem is.  I assume you mean that you are getting off2 with value 0, when /bic/zbib_sysn contains USERID-VMC/
    Can you be a little clearer in what the issue is?
    DATA: off2 TYPE i.
    FIND '/' IN 'this string /' MATCH OFFSET off2.
    WRITE: / sy-subrc, off2.
    This little program returns 0 and 12 
    matt

  • I am having trouble with my speakers not working while online in particular on windows.My audio works when playing audio files

    I am having trouble with my speakers not working while online particular on facebook. My audio works when playing audio files.

    Hi,
    Did it happen all the time or sometime?
    Please check online browser status:
    Click Volume icon in the taskbar, click Mixer link button as below:
    If it's fine, follow this guide to run troubleshooter to detect and fix the issue:
    Tips for fixing common sound problems
    http://windows.microsoft.com/en-in/windows/tips-fixing-common-sound-problems#tips-fixing-common-sound-problems=windows-7
    Meanwhile, this similar thread also could be referred:
    https://social.technet.microsoft.com/forums/ie/en-US/a4a1cfe5-93a5-4c0b-9bf6-f7db0304f2ba/no-sound-on-youtube-or-any-other-webpage
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Serial number provided with download does not work, now what?

    serial number provided with download does not work, now what?

    Chrish29593217 you are welcome to contact our directly at Contact Customer Care.  What Adobe software title are you facing difficulties with?

  • TS3297 i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    i bot a 3g iphone 2nd hand and it is trobleing a lot with os and not working plese help me

    The following guide gives information on how to sync ringtones from your computer to the phone. The reference section at the bottom of the quide also gives instructions on how to convert a song to a ringtone. https://discussions.apple.com/docs/DOC-3792

  • [svn] 4323: Bug: LCDS-544 - Scenario where two components have seperate channel sets with overlapping channels not working .

    Revision: 4323
    Author: [email protected]
    Date: 2008-12-15 19:23:10 -0800 (Mon, 15 Dec 2008)
    Log Message:
    Bug: LCDS-544 - Scenario where two components have seperate channel sets with overlapping channels not working.
    QA: Yes
    Doc: No
    Checkintests Pass: Yes
    Details:
    * Hunting to a new channel within a channelset never triggered a disconnect from the previous channel(s). This isn't a problem in general, but does becomes a problem when an app defines two distinct channelsets containing at least one shared channel at the head of the list. In this case, the first channelset hunts past it and connects on a later channel. But when the second channelset hunts through (triggering a connect fault when it hits that initial shared channel that can't connect), the fault is processed by the first channelset as well (incorrectly).
    Ticket Links:
    http://bugs.adobe.com/jira/browse/LCDS-544
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/rpc/src/mx/messaging/ChannelSet.as

    Running the script by python2 solves it for me:
    su - mythtv -c "nice -n 19 python2 /usr/bin/tv_grab_nl_py --output ~/listings.xml"
    Best regards,
    Cedric

  • Attribute Change Run aborted with an error :Not all data indexed for index

    Hi,
    I have an issue where the master data Attribute Change Run  aborted with an error pointing to the BWA:
    Attribute Change Run aborted with an error :Not all data indexed for index
    we tried to load only 0 data into it,the error still occured.

    Detail message is following:
    not all data was indexed for index 'GBP_BIC:XYCH_098('0' for '114')
    creation of The BIA INDEX for infocube 'YBC_SD015' terminated while filling

Maybe you are looking for

  • How can I tell if my Time Machine backups are encrypted?

    Hi - I would really appreciate it if someone could help me find out if my Time Machine backps are actually encrypted. I know that there is an 'encryption' option when choosing a disc for Time Machine to backup to, but the problem is I cannot remember

  • Premiere Pro CC und After Effects Crashes

    Zuletzt protokollierte Meldung: <140735231746432> <GPUManager> <2> Sniffer Result Code: 3.

  • PDF file created is 92% smaller

    If I create a pdf file either using thr Print function (Save to PDF) or even withing Photoshop (Save As .... PDF). This is a pain when I'm trying to email scaled drawings. Cna this be changed to creat the PDF as 100%?

  • HT5621 I am unable to enter my Apple ID on my phone

    I changed my apple ID a few months ago and apparently it didn't change on my iCloud and now the phone won't allow me to change it so I can sign in. How can I change that?

  • Accout determination error for Asset while MIGO urgent

    Hi, I am doing the GR for assets but I am facing the following error Account determination for entry NSL WRX 0001 not possible Message no. M8147 Diagnosis The system did not find an account for this transaction. This means that the account determinat