|
Answer» Hopefully I can make this as simple as possible. I need to create an Array of a structure( which basically holds the information from the summary form) and I am having issues as to where to put the code.
1) My project has 3 forms, a mainform, a summary form and splash screen.
2) I need to print the table on a print preview invoice
3) I need the summary form to still show summary totals
So here is my QUESTION, do I put the code simply in the PrintDocument1_PrintPage event?
Does it make sense what I am asking? * Note I am NOT asking for the anyone to write my code* THANK you Are you using an existing solutions for a task? Or is this an exercise is how to solve a problem? There are already many report generators. Foxbase comes to mind.I am to use an existing solution yes. My issue is when I follow my BOOKS example, my calculations are incorrect and my summary form does not work. Mainly due to the example in the book NOT have a summary form. I do believe I can tweak my code to still show my summary form though.
My current error is " Array Intializer has too few DIMENSIONS"You are using Visual Basic for you task. You can have the IDE (Also called the Integrated Development Environment) give you help on this. You can ask for help with an error message and the Visual Basic editor will OFFERS some advice. You will need to pay attention to how the DIM is used to build an ray for several declensions. But, in a structure each array may be of a different type, so you must find a way to provide enough DIMS of the right type for the structure. That is a much as I can tell you.
|