I'm trying to make a program so that people at work can generate their mock ups in C# then pass them to my program and have a Word document created based on what's in the mock up. Right now I am taking the Designer files from the project and parsing their code to generate this. I was just wondering if there is a better way or not. Thanks!
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.
So basically you're doing screenshots of all the forms and putting each one on its own page in the word doc?
It would be easier just to fill an array with instances of all the forms and loop through them outputting the screenshot and the name of the form as a heading or something.
It does sound like a useful tool, I could do with something like that. How advanced do you want to make it?
Well no its not exactly like that. What I am doing is something along these lines:
1. Load the .csproj
2. Loop through its files and get all the Designer files
3. Parse the designer file and store the information in a class that will contain the form name and all controls in it, including their types and tab indexes(for later sorting)
4. Parse the rest of the file so that I can find which Controls are part of group boxes and then associate them accordingly
5. Organize each form grouping controls based on their type
6. Display the form in a checkboxed treeview showing the form and all controls in contains in their groups
7. Allow the user to select the controls they want
8. Get input for a Word document
9. Output the selected controls to a word document with the specified parameters in Logical Design format
I can show you screen shots of what I have so far if you want... Is it possible to get screen shots of the forms just from the .csproj? I didn't know it was. I can do most of what I've said above i'm just running into some small errors with outputting to Word, I haven't really done alot with COM before but I'm getting there. Would you like a look at some of the code? I still have to make some changes and it's a bit sloppy though haha
C#.net, VB, C++, Java, VS 2005/2008
Dont' forget to rate posts that are helpful to you.