Reports having Data from MSFlexGrid & TextBoxes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smartchap
    New Member
    • Dec 2007
    • 236

    Reports having Data from MSFlexGrid & TextBoxes

    In VB6 in a form there are 10 labels and associated 10 textboxes and 2 MSFlexGrids. There are 5 columns in the first MSFGrid and 7 in the second MSFGrid. There are 3 rows in the first grid and 4 in the second. I want to generate a report (may be using DataEnvironment and DataReport, as I don’t have Crystal Report) in such a way the its output should be as follows:
    7 Labels and associated 7 textboxes
    Data in First MSFlexGrid (first row showing headings of columns and next 3 rows data)
    Data in second MSFlexGrid (in similar fashion as for first grid)
    Remaining 3 labels and 3 textboxes in the form

    Please help me, if possible by attaching an example program.
    Thanks in advance.
  • creative1
    Contributor
    • Sep 2007
    • 274

    #2
    I am not sure if it will help you at all. If you want to ues data enviornment for your reports. then you should save the transection in the databse first and then connect the fields and display them in repective areas in the report. You can see example in howtos for this. If you want to transfer data from your form to the report. Then you would have to use lables not text boxes on the reports and then transfer data there. For grid you should try using loops to transfer data there.
    Regards

    Comment

    • smartchap
      New Member
      • Dec 2007
      • 236

      #3
      Dear Creative1
      Thanks for the reply. I am already saving all my data into Access and then using Recordset writing it in DataReports through DataEnvironment . Problem is with displaying data of both the grids separately and in a tabular form. If possible help me with an attachment example.

      Comment

      Working...