Hello,
I have a database which stores Room related information (almost 50 columns), showing data for that particular Room, i.e. temperature, pressure, finish, name of the person living, room number etc. So each row has 50 columns which represents 50 properties of a room.
This database is created dynamically for each different building so no. of rooms are varying from building to building.
I want to import this data into .docx document with preformatted tables using content control. The .docx will have 5 different tables, on 5 seperate pages, in which one room specific data goes into. So for first room I can populate all table cells. No problem. I can place each table inside content control so I can get the correct table using tag information.
My question is how can I copy those 5 tables again so that I can eneter other room data in the same manner? The only way I can think of is to create tables programatically. But I think this will slow down the whole application, No?
Theoritically the way I see it working is add blank pages and then copy tables on to those blank pages. But unfortunately I dont know how to do this.
I want to do something like this.
http://msdn.microsoft.com/en-us/library/cc197932(v=office.12).aspx[
^]
Basically, I want to generate a multi-page word document that shows all rooms information, lets say 100 rooms. So Each room information is divided in 5 pages (tables). So in total there will be 500 pages word document.
Thanks in anticipation of your help.
Regards