locked
How to display 2 rows 2 columns data? RRS feed

  • Question

  • User-1575149674 posted

    hi

    is it possible to display the data in crystal report in this example?

    --------------------------

    |   Data         |  Data        |
    |    A             |         C      |
    ---------------------------
    |  Data         |      Data     |
    |     B            |         D      |
    ---------------------------

    with this code 

    ....
    ...
    ..
    CrystalReportViewer reportViewer = new CrystalReportViewer(); CrystalReport creport = new CrystalReport(); creport.SetDataSource(Ds.Tables[0]); var t = reportViewer.ReportSource = creport; crystalReportViewer1.ReportSource = t;



    Tuesday, March 31, 2015 3:36 AM

Answers

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 31, 2015 3:46 AM
  • User1711366110 posted


    it looked the same as shown in the sample, but when it goes to second page onward
    the displayed data are not aligned

      As per your case, you can adjust the width between column, refer the following steps

    • In the Section Expert, highlight Details, and then select Format with Multiple Columns.

      A Layout tab is added to the Section Expert.

    • Click the Layout tab and set the Width you want your column to be.

      Keep in mind the width of your paper when deciding your column width. For example, if you have three fields in your Details section, and they take up four inches of space, limit the width of the column to under four and a half inches so that all the field information can be seen.

    • Set the Horizontal and/or Vertical gap you want to maintain between each record in your column

    --
    with regards,
    Edwin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 1, 2015 4:49 AM

All replies

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, March 31, 2015 3:46 AM
  • User-1575149674 posted

    thanks man!

    it looked the same as shown in the sample, but when it goes to second page onward

    the displayed data are not aligned.

    --------------------------

    |   Data       |                   | 
    |    A           |   Data        |
    |                 |         C      |
    ---------------------------
    |  Data         |                  |
                              Data     |

    |     B            |         D      |
    ---------------------------

    Tuesday, March 31, 2015 4:51 AM
  • User1711366110 posted


    it looked the same as shown in the sample, but when it goes to second page onward
    the displayed data are not aligned

      As per your case, you can adjust the width between column, refer the following steps

    • In the Section Expert, highlight Details, and then select Format with Multiple Columns.

      A Layout tab is added to the Section Expert.

    • Click the Layout tab and set the Width you want your column to be.

      Keep in mind the width of your paper when deciding your column width. For example, if you have three fields in your Details section, and they take up four inches of space, limit the width of the column to under four and a half inches so that all the field information can be seen.

    • Set the Horizontal and/or Vertical gap you want to maintain between each record in your column

    --
    with regards,
    Edwin

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, April 1, 2015 4:49 AM