Hi
Based on my understanding, when you are automation MSWord XP with C# 2003,
you find that you can not locate the insert point with the predefined
bookmark in a template.
I think you may try the steps below to see if that works for you.
1. Have you tried to use the Office XP PIA which is the official Primary
Interop Assembly for Office XP?
You may try to install it to see if that helps.
We can get it from the link below.
Working with the Office XP Primary Interop Assemblies
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/htm
l/odc_oxppias.asp
Office XP PIAs
Download the Office XP PIAs and use them to develop Office XP solutions
with Visual Studio .NET.
http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71- A6B4-01FEBA508E52&displaylang=en
2. Have you tried to do the similar job in the work vba code?
To isolate the problem, we may try to make simplest template,e.g. build a
blank template with just one or two bookmark to see if the problem
persists. And then use the VBA/C# code to see if the inserted text is
located correctly with bookmark.
If the problem persists in VBA/C#, I think we may need to try to look into
the template.
If the problem persists in just C# with PIA installed with a simple
template, can you provide the template with the test C# code for us to do
further troubleshooting.
Please perform the steps and let me know the result and I will appreciate
your efforts.
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security This posting is provided "AS IS" with no warranties, and confers no rights.