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. C#
  4. Display images in the Image data type XTraReport

Display images in the Image data type XTraReport

Scheduled Pinned Locked Moved C#
help
5 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.
  • N Offline
    N Offline
    nhanlaptrinh
    wrote on last edited by
    #1

    In his table with 1 column named 'Picture', Image data type, when you save the image successfully, but when the XTraReport intelligent display shows only the string column, but do not show columns Picture is, I wrote the following code to help you with you know, okay thanks in advance. xrPictureBox1.DataBindings.Add("Image", DataSource, "Picture");

    P 1 Reply Last reply
    0
    • N nhanlaptrinh

      In his table with 1 column named 'Picture', Image data type, when you save the image successfully, but when the XTraReport intelligent display shows only the string column, but do not show columns Picture is, I wrote the following code to help you with you know, okay thanks in advance. xrPictureBox1.DataBindings.Add("Image", DataSource, "Picture");

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      Who is this aimed at? Is this meant to be a question? I can't tell because there seems to be a lot of confusion there. If it's a question about displaying pictures in XTraReport, the DevXpress forums will be your best source for an answer. Try looking here[^] and entering XTraReport Picture as your search criteria.

      I was brought up to respect my elders. I don't respect many people nowadays.
      CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

      N 1 Reply Last reply
      0
      • P Pete OHanlon

        Who is this aimed at? Is this meant to be a question? I can't tell because there seems to be a lot of confusion there. If it's a question about displaying pictures in XTraReport, the DevXpress forums will be your best source for an answer. Try looking here[^] and entering XTraReport Picture as your search criteria.

        I was brought up to respect my elders. I don't respect many people nowadays.
        CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

        N Offline
        N Offline
        nhanlaptrinh
        wrote on last edited by
        #3

        Me non not as a, helps me with, me to do.

        P 1 Reply Last reply
        0
        • N nhanlaptrinh

          Me non not as a, helps me with, me to do.

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          What? I appreciate that English isn't your first language, but that sentence makes no sense to me.

          I was brought up to respect my elders. I don't respect many people nowadays.
          CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

          N 1 Reply Last reply
          0
          • P Pete OHanlon

            What? I appreciate that English isn't your first language, but that sentence makes no sense to me.

            I was brought up to respect my elders. I don't respect many people nowadays.
            CodeStash - Online Snippet Management | My blog | MoXAML PowerToys | Mole 2010 - debugging made easier

            N Offline
            N Offline
            nhanlaptrinh
            wrote on last edited by
            #5

            I bind text data type is correct, but the wrong type of image. You see if that helps. The code I wrote is as follows: Code in simpleButton4_Click

                    DataTable data = User.getInfo();
                    rptUser rpt = new rptUser();
                    rpt.DataSource = data;
                    rpt.BinData();
                    rpt.ShowPreview();
            

            Code in xtrareport

            public void BinData()
            {
            xrTableCell3.DataBindings.Add("Text", DataSource, "username");
            xrTableCell4.DataBindings.Add("Text", DataSource, "full_name");
            xrPictureBox1.DataBindings.Add("Image", DataSource, "img");
            }

            Please help me! :(

            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