By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

Reports having Data from MSFlexGrid & TextBoxes

smartchap
100+
P: 236
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.
Feb 2 '08 #1
Share this Question
Share on Google+
2 Replies


100+
P: 274
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
Feb 20 '08 #2

smartchap
100+
P: 236
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.
Feb 28 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.