Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How do I programmatically add data to a report - and how do I draw the report?

How do I programmatically add data to a report - and how do I draw the report?

Scheduled Pinned Locked Moved Visual Basic
databasequestiongraphicsdesignhelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BluesEnd
    wrote on last edited by
    #1

    I’m working on a project that saves records to a datatable/dataset. I then serialize the dataset to save it, and deserialize to show the records in a datagridview, and I add more records, serialize, deserialize etc etc. – I’m using binary formatting. I added the dataset/datatable from the toolbox and selected “untyped” for the dataset. I want to print out this table and other text. Do I need to draw a report using graphics on to a page and then programmatically add the data from the deserialized file, or is there a better way to design and add data to a report? I’ve looked at crystal reports and report viewer and I cannot see how to programmatically add data using them – they both talk about connecting to a SQL or ADO database which mine isn’t. Any help and/or any tutorials about this would be appreciated. Regards, Steve

    Thanks for your help and advice! Steve

    M 1 Reply Last reply
    0
    • B BluesEnd

      I’m working on a project that saves records to a datatable/dataset. I then serialize the dataset to save it, and deserialize to show the records in a datagridview, and I add more records, serialize, deserialize etc etc. – I’m using binary formatting. I added the dataset/datatable from the toolbox and selected “untyped” for the dataset. I want to print out this table and other text. Do I need to draw a report using graphics on to a page and then programmatically add the data from the deserialized file, or is there a better way to design and add data to a report? I’ve looked at crystal reports and report viewer and I cannot see how to programmatically add data using them – they both talk about connecting to a SQL or ADO database which mine isn’t. Any help and/or any tutorials about this would be appreciated. Regards, Steve

      Thanks for your help and advice! Steve

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      First thing is to go get a hammer, now bash your left foot with it, the pain you feel is nothing to what you will feel if you decide to use Crystal Reports. There are a number of threads here discussing reporting tools, none recommend CR. As you are not even using a database I assume your data requirements are minimal (serializing datasets will very quickly become useless if you have any real volume of data) so depending on the VS version there are report projects/forms you can add. Also there are grid printing articles on CP I believe .

      Never underestimate the power of human stupidity RAH

      B 1 Reply Last reply
      0
      • M Mycroft Holmes

        First thing is to go get a hammer, now bash your left foot with it, the pain you feel is nothing to what you will feel if you decide to use Crystal Reports. There are a number of threads here discussing reporting tools, none recommend CR. As you are not even using a database I assume your data requirements are minimal (serializing datasets will very quickly become useless if you have any real volume of data) so depending on the VS version there are report projects/forms you can add. Also there are grid printing articles on CP I believe .

        Never underestimate the power of human stupidity RAH

        B Offline
        B Offline
        BluesEnd
        wrote on last edited by
        #3

        Hi Mycroft, Yes, I agree with your crystal reports idea!!!! - it definitely is too much for this project. Yes, the data requirements are minimal and yes, I'm not using a database - I put records into a datagrid view and then serialize when finished. I'm using using VS 2008 full version. Could you point me in the direction of any articles/help/other threads/sites on this subject please I'm a beginner hobby programmer and know only a little but feel I've made good progress so far..... I've got this vision where it's possible to placce a piece of blank paper onto a form and then drag n drop the various objects onto it, ready for printing but I'm realising that probably isn't possible. (it's a good idea for an expert to design a class like that...!!!!). So could you give me some pointers in the direction I need to go....? Regards, Steve

        Thanks for your help and advice! Steve

        M 1 Reply Last reply
        0
        • B BluesEnd

          Hi Mycroft, Yes, I agree with your crystal reports idea!!!! - it definitely is too much for this project. Yes, the data requirements are minimal and yes, I'm not using a database - I put records into a datagrid view and then serialize when finished. I'm using using VS 2008 full version. Could you point me in the direction of any articles/help/other threads/sites on this subject please I'm a beginner hobby programmer and know only a little but feel I've made good progress so far..... I've got this vision where it's possible to placce a piece of blank paper onto a form and then drag n drop the various objects onto it, ready for printing but I'm realising that probably isn't possible. (it's a good idea for an expert to design a class like that...!!!!). So could you give me some pointers in the direction I need to go....? Regards, Steve

          Thanks for your help and advice! Steve

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          Seems to be plenty of articles[^] here to cover the subject.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups