Word Automation Error

G

Guest

All,

I've recently moved workstations to a new box with Office 2003.

A website that does some automation with word does not compile anymore, the
offending line is :

bookmark = "StartDate";
doc.Bookmarks.Item(ref bookmark).Range.Text = String.Format("{0:dd MMM
yyyy}", DateTime.Parse(data[0]["StartDate"].ToString()));

I have updated the references to office core and
Microsoft.Office.Interop.Word and it seems the doc.Bookmarks does not haver a
..items anymore.

I've been searching all day for a fix, please help !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,599
Members
45,170
Latest member
Andrew1609
Top