|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
VB.NET and MS Word Find and Replace Errormy code works, but when I try to do a find and replace, I get a read/write memrory access error. Not sure what is going on. Any advice? Error occurs on the .Text line of the with block Public wordapp As New Microsoft.Office.Interop.Word.Application Public doc As New Microsoft.Office.Interop.Word.Document With wordapp.Selection.Find .Text = "[" & Trim(strField) & "]" .Replacement.Text = Trim(strReplacementText) .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With wordapp.Selection.Find.Execute(Replace:=wdReplaceAll) Hello,
I have exactly the same problem. Have you found the reason yet ? Thanks, Erwin Speltincx EggHeadCafe.com - .NET Developer Portal of Choice http://www.eggheadcafe.com
Commercial copy protection?
Need some help... Why I am sick of .Net destroying/releasing objects from memory? Retrieve Hard Disk Serial Number or othe unique PC identifier - XP & 2K Merging Java and VB for alert box This code demonstrates a problem using a treeview twice Looking for suggestions on how to do something How to get the registry key permission using RegistryRight in NET2.0? slow form backimage load @ vb.net |
|||||||||||||||||||||||