I have a Word document instantiated in code and I need a way to test whether a specific word is the first word in a paragraph or sentnence.
So, for instance, given this content, I need to know whether or not &THEDATETIME begins a paragraph or a sentennce:
Section 577.010, committed the class B misdemeanor of driving while intoxicated, punishable upon conviction under Sections 558.011 and 560.016, RSMo, in that &THEDATETIME, at &THELOCATION, in the County of &THECOUNTY, State of Missouri, the defendant operated a motor vehicle while under the influence of alcohol. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Don't read too much into my use of "&THEDATETIME", it is for very obscure reasons I have to do this instead of use merge fields.
Is there a way to do what I am looking to do?