1
Answer

Detect Blank MS Word Document

Jyotsna.Verma

Jyotsna.Verma

21y
1.9k
1
Is there a way of detecting if there is Text in a word document ? We have a form which allows the User to edit a MS Word document. The User can then click on a button on the form which saves the document back to a database, we don't want to allow the save if the document is blank. Any help greatly appreciated. Thanks John
Answers (1)
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
My mistake - it appears to work IF, and only if, the top control associated with the splitter is docked using the full docked property. Before I was trying with the bottom control using the full docked property. So in summary, it works if: topControl.Docked = DockStyles.Full; bottomControl.Docked = DockStyles.Bottom; I'm gonna submit some code for this one ;)
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
I got similar error in DataGrid docked in new form after reloading DataSource in DataGrid when new record count is bigger then older and resising form(!). Workaround: myDataGrid.Dock=DockStyle.Top; myForm.Show(); myDataGrid.Dock=DockStyle.Fill; May be any trick like this will be useful.
0
Administrator

Administrator

Admin 2.3k 1.3m 21y
I haven't looked at this so I don't know if it's a bug or not, but if you are pretty sure it is you might want to add it to this site which has a list of some .NET bugs. Hopefully the guys at MS will check it out.