Chart from CSV datasource not appearing

Hi,
I'm using CRXI in VS.NET 2005 on Vista32.
I get the feeling that maybe I've misunderstood something fundamental about how Crystal Reports can be used to bind to a report datasource at runtime. I know that I can set the datasource using the OLE Text Driver or as a DataSet:
public DataTable ParseCSV(string path)
            if (!File.Exists(path))
                return null;
            string full = Path.GetFullPath(path);
            string file = Path.GetFileName(full);
            string dir = Path.GetDirectoryName(full);
            //create the "database" connection string
            string connString = "Provider=Microsoft.Jet.OLEDB.4.0;"
              + "Data Source=\"" + dir + "\\\";"
              + "Extended Properties=\"text;HDR=Yes;FMT=Delimited\"";
            //create the database query
            string query = "SELECT * FROM " + file;
            //create a DataTable to hold the query results
            DataTable dTable = new DataTable();
            //create an OleDbDataAdapter to execute the query
            OleDbDataAdapter dAdapter =
               new OleDbDataAdapter(query, connString);
            try
                //fill the DataTable
                dAdapter.Fill(dTable);
            catch (InvalidOperationException /*e*/)
            dAdapter.Dispose();
            return dTable;
And used as follows:
// Configuration.csvFileString is a full path to the CSV file
DataTable dt = ParseCSV(Configuration.csvFileString);
crDoc.Database.Tables[0].SetDataSource(dt);
crystalReportViewer1.ReportSource = crDoc;
crystalReportViewer1.RefreshReport();
But I see that when I set up a chart, the available fields shown are statically bound already, because without selecting a datasource first, the Report Designer won't do anything!
I can't see anywhere in the code behind the report where I can dynamically rebind the chart in the report, and I've never seen anything online (here in the CR forums or elsewhere) showing how to bind the datasource for a chart at runtime.
Am I doing this correctly? Have I missed something?
Thanks
Paul

I'm not 100% sure I understand the query, but here goes;
With Crystal Reports, you need to create the report first. You can then pass a dataset to it to reflect new data. As long as the dataset matches the structure of the data the report was created with, this should work. You could take your existing dataset, write it out to an XML and build the report off of that:
myDataset.WriteXml(xmlPath, XmlWriteMode.WriteSchema)
If you want to build a report at runtime, you will have to use RAS. For more information see the following resources:
http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
C:\Program Files\Business Objects\Crystal Reports 11.5\Help\en\crsdk_samples_aspx\data\crsdk_net_tutorials_115_en.zip
C:\Program Files\Business Objects\Crystal Reports 11.5\Help\en\crsdk_net_doc\doc\crsdk_net_doc.chm
http://www.businessobjects.com/global/pdf/dev_zone/VS2005_Walkthroughs.pdf
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
RAS:
https://boc.sdn.sap.com/developer/library
http://devlibrary.businessobjects.com
https://boc.sdn.sap.com/dotnet/samples
Ludek

Similar Messages

  • The email sent from macbook do not appear in my iphone and yahoo account

    the email sent from macbook do not appear in my iphone and yahoo account

    thanks for your help... I was feeling frustrated because the sync problem, but with your suggestion all contacts are now on my iPhone. _Thanks once again_.
    I think that I was asking two different questions at the same time, because the problem with the iPhone synchronization was solved, but the .Mac Address Book still has no new contacts... just the contacts before the Mac OS X update to Leopard. I guess that I will need to look for help in other discussion topic.

  • Music file transfered from PC does not appear in t...

    Some of my music files transfered from PC does not appear in the music player in the cellphone but they appear as rigntone..NOKIA N81
    How will i resolve it??
    Can someone help me?
    Please reply, it's urgent.

    Hi Irosenth
    Thanks for the answer. I am not sure I understand your question though.
    We have a collection of reader enabled pdfs that the user can open in a webbrowsercomponent in a .Net winform.
    We used to (Reader 9.4 and before) replace the Readers "save pdf" button with our own "save pdf" button that
    - saves the pdf
    - exports its data as xml
    - send a message to the .Net winform that the pdf has been saved.
    We implemented our own save button and its functions using a plug-in.
    Now I can't find our "save pdf" button in Reader X. That is my problem.
    So I try to create a new toolbar and place our "save pdf" on this new toolbar as you adviced me.
    I expect the toolbar to show up in the Tools pane in the webbrowser component in Reader X.
    But it doesn't. There is no Tools pane when I open the PDF in the webbrowser.
    (btw all the keyboard shortcuts we have created in the plugin (ie CTRL, ALT, L) works fine - so the plugin generally works).
    When I couldn't find my toolbar with its button in the webrowser, I tried to open one of the reader enabled pdfs in the Reader X as a standalone application.
    This was just as a test to see if it worked any different from the browser plugin. It is not part of our use case.
    But I noticed that in the standalone Reader X I do have a Tools pane, and my new toolbar but no "save pdf" button.
    This is how it looked with Reader 9.4 and before:
    OK the red text in the screenshot is quite difficult to read. It says (from above)
    "We have replaced the Readers save button with our own save button in the plugin.
    This is the (selvcreated save) button I miss in Reader X"
    "This is a Reader enabled PDF shown in a webbrowser component in a .Net Winform"
    "The users only have the Reader, not Acrobat"
    Best regards
    Jan
    Message was edited by: Dafolo_Jan

  • Deleted Items from External HD Not Appearing in Trash

    I have an iomega external hard drive and have had recent issues trying to trash deleted items.
    I delete the items and they are removed from the hard drive, but they do not appear in the trash and therefore are unable to be "trashed" so that space is freed up.
    I did some research and found that this is most likely an issue with ghost files still present on my external.  Through use of the Terminal, I made hidden files appear on my external, but I was unable to re-delete the items that I had previously deleted/was not even able to find the items I had previously deleted.
    Any help would be greatly appreciated.  As mentioned earier, this problem just surfaced.
    Thanks.

    I am having the exact same problem with my external, which is used as my iTunes library storage.
    When I delete things from iTunes, and select "move to trash", the files do not appear in the trash, as they used to.
    The trash stays empty (as in, no items are visible, even though I just deleted things).
    Oddly enough, after a restart, the files will appear, and thus are able to be trashed.
    Obviously, I do not want to have to restart every time to do this.
    I looked through the other thread, and nothing helped.
    Still looking for some answers!

  • Dependents from IT0021 are not appearing in IT0167 for Benefits Plans

    Hi All,
    Our client upgraded developement and QA client from 4.6 to 6.0 version. While assigning benefieries to the benefits plans in Dependents tab(IT0167) list of dependents are not appearing. Where in in Production system dependents are appearing, production is still in 4.6 version.
    Regards,
    Karunakar

    Dear,
    It is always required to read the dependent data as on the start date of IT0167. This is because for each plan, there is some dependent eligibility associated and to calculate eligibility, the data come from infotype 0021.
    I would advice you to go through the note 947172. By implementing this note, you will be able to allow employee to edit the existing dependent record instead of delimiting and creating a new dependent record.
    Best Regards,
    Deepak..

  • Why Gmail sent from my iPhone not appearing in iMac's Sent folder?

    Hi guys,
    Some time after installing iCloud - possibly the same day, I sent a message from my iPhone 3G to multiple recipients.
    a) No one got it, b) my message appears as Sent in iPhone and in Gmail (on their site), and on my iMac's Gmail/Sent folder, but not in the iMac's Mail/Sent folder - which is the one I always check.
    I have 2 questions: 1. how come a message appearing as Sent on Gmail's own site isn't received (there were 4 recipients) and, 2. why does it appear as Sent in some but not all Sent folders?
    Would iCloud have anything to do with it?
    I just sent a test message to myself from my iPhone. I got the message both on the iPhone AND iMac, but again the message does not appear in the iMac's/Mail Sent folder. Bizarre?
    PS   All my software is up to date, regardless of what my profile says.
    Thanks a lot,
    Raphael

    Please ignore the above .  I have discovered what I did wrong - but don't know how to delete the question!
    Sorry

  • Photos from recent event not appearing in photo library

    I have recently uploaded photos from a recent trip. I have named the event and it is listed and accessible through 'events'. The event is also listed under the 'recent' menu. However, the photos are not appearing in my 'photos' library!
    I want to sort the photos into my own order manually, but when I access the photo through the events menu, the option to sort photos manually is blanked out.
    Any help would be gratefully received! Many thanks.

    Welcome to the Apple Discussions.
    However, the photos are not appearing in my 'photos' library!
    Are you referring to the Photos mode in iPhoto? That mode cannot be sorted manually. Send a feature request to Apple via http://www.apple.com/feedback/iphoto.html.
    A workaround is to create a regular album and add the entire library to it. Then you will be able to manually sort the photos. New photos added to the library and the album will initially be located at the bottom of the album's window.
    Albums give you the most control over displaying of the photos.

  • Why are my purchased movies from apple TV not appearing in itunes?

    I have purchased movies on both my itunes and apple tv. However, my apple tv movies do not appear on my itunes. I would like to either have them all on my itunes or all on my apple tv (or is it iCloud??).
    Is this possible? If so, how? Thank you.

    If a movie is removed from the iTunes store then yes you would lose it.
    I think you misunderstand what icloud is, there is no 'raw contents'.
    iCloud allows for reloading of past purchases (it is simply accessing what is on the storefront), syncing contents between devices and backup of mobile data. It is different from say something like dropbox.

  • An album that I bought from itunes will not appear on my iphone 5

    when i synced my phone, it did not appear in my library. it shows up on my computer, but not my phone. i bought it from itunes on my computer. when i click on the "on this iphone tab" i see that the album is greyed and has a dotted circle to the left of all the songs. please help.

    Sorry, I meant the letters look "faded" not faed.

  • Yahoo is in menupage after update, cannot remove from firefox, is not appearing in control panel so cannot remove there, worried may be malicious

    When trying to look at temp file on usb, downloaded file viewer, yahoo was installed as homepage and is now appearing in toolbar and menu bar. Can remove it from toolbar but will not go from menubar. It is not appearing in the control panel. Uninstalled all programmes that were downloaded today to see if did anything but has not had effect. Worried that this is affecting laptop.

    You don't want to update to 3.6.4, trust me. Stay with 3.6.3. If you need to download it again you can find it here:
    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.6.3/win32/en-US/

  • Email sent from MacBookAir does not appear on iphone or other windows?

    Hi All,
    Just started using MackBook Air, love it. Can someone guide me please. When i send an email from MacBook Air, it does not appear in the "Sent" folder on the iphone or other computer?
    How can i fix this issue, so that whatever email i send using yahoo or etc, appears on all, ie MacBook Air, iphone, windows.
    Thanks
    A

    That will happen under two conditions:
    You have an IMAP mail account, such as iCloud.
    You select the option to store sent messages on the server in the account settings.

  • Aperture - Album from Shared Library Not Appearing in iTunes

    I have a recurring problem which is making Aperture downright useless.
    I operate a shared Aperture library (shared between 2 users on the same iMAC) which resides in the 'Shared' Users folder. Obviously we cannot have the same library open at the same time -that's no problem. I have set the sharing properties for the library contents and folders to Read and Write for both of us.
    The problem is that when I add photos and create a new Project ad Album to put them in (not worried about the other user at the moment), these don't show up in the Aperture album or project list in Photos in iTunes to sync to my iPad or iPhone.
    I have this very minute added a new album, closed Aperture and made sure its written to disk. Then I have closed the iTunes app and made sure it has quit.
    Then when iTunes loads up again and I connect my device - the library and project do not appear in the items to sync.
    This happens all of the time and it's making Aperture pretty pants. If the only resolution is to rebuild thumbnails, rebuild XML file etc or any more of that - then its not fit for purpose.
    Has anybody a long term permanent fix for this?
    It's seriously doing my head in!

    Bumping this up as it seems that nobody has any idea.

  • Chart: New data suddenly not appearing

    Hi
    I have an Apex chart (Flash - 2D vertical bar) which summarises soume counts over each day.
    Last 15 days, it worked fine. Suddenly it is not showing any new day's data!
    The underlying SQL works fine (ie. fetches new data without issue) - only chart is not updating with new data.
    I tried to increase width of the chart but still it not showing more than 15 bars.
    Any solution?
    Thanks
    PS: I discovered that none of my Flash charts are showing more than 15 items on X axes!

    Hi,
    There is a Maximum Rows field on the Chart Series definition page that is set as 15 by default. If you change this it should help.
    Jon.

  • VERSION FIELD FROM SALES ORDER NOT APPEARING IN COOIS REPORT

    DEAR ALL,
      I am working on make to order scenario. Version field from sales order not updated when im taking MRP Run for specific Sales order in COOIS Report. But when iam creating production order with T. COde CO08 field getting updated. Its very important to get vrsion field as we have maintain old sales order No. in same. How this problem will get resolved?
    Regards
    Atul

    Atul,
    "MRP run" does not normally create production orders, MRP creates Planned orders.  Planned orders do not contain Sales order version.   I have never used this field before, but I would not be surprised if the behavior you are describing is 'standard'.  When you create a production order using CO08, you are creating a 'production order with reference to a Sales order' (which contains Sales Version).  When you create a production order using, say, CO40 or CO41, or using a program such as PPBICO40 in Batch, you are creating a 'production order with reference to a Planned order', (which does not contain version).
    If it is imperative that you have the Sales Order version number in all production orders, you could see if Planning Strategy 82 (Assemble to order) production orders contain the data you seek.  Otherwise, I am afraid you will have to have your ABAPers write some custom code to update this field in the production order.
    Another way to get sales order data into the production order, that does NOT require custom code, is by using Item Texts in the Sales order.  Any text placed in the Sales Order Item Text Field Production Memo (Text ID 0006) can be configured to be duplicated automatically in the Production order in an MTO environment.  Production Memo then displays as another Tab in CO02.
    Regards,
    DB49

  • When I click tools+options+privacy a small part from right side not appears?

    in firforx 3.6.8 (arabic) version the right side not appears to use the option which I need to keep privacy. this happen in the last version of 3.6

    This may help - http://kb.mozillazine.org/Dialog_too_small_or_too_large

Maybe you are looking for

  • Dynamic Scheduling Best Practice -- IS-U-BF-PS E1DY E2DY

    I have been tasked with resolving several long standing issues with My Companies Meter Reading Schedules. My question originates out of the desire to implement the eventual corrections I make as close to a best practice standard as possible. Near the

  • ISync 2.2 and SonyEricsson S700i

    After installing the update 10.4.6 on my PB G4 1.5GHz; I could not sync my mobile phone SonyEricsson S700i using iSync 2.2. I tried it several times but every time just at the end of the sync process it gives a message "Error [S700i] There was an err

  • User-configurable region ordering

    We have a requirement for users to be able to specify the ordering of regions on a page. A typical page may show 5 to 10 reports, some of which are more of interest to some users than to others. Therefore, for user A it may be appropriate to show the

  • Installed MAC OS Lion and updated iTunes some Icons in dock bounce and won't lauch

    I install the new Mac OS Lion after I updated the Itunes started to have problems with the icons in the doc bounce and won't launch the program. This is getting fustrating because I do not know what elese to do. It got so back that no program would l

  • Coherence Event Listeners on Cache Data Expiry

    Hi, I'm working on a Fusion integration project with Coherence for caching solution. We have a scenario to update cache data(with Updated Key value) when it expires in Coherence. I came across topic on listeners for Coherence Events, would like if it