J
James J
I developed an application under VB.NET and WinXP that
generates a report in Word2003. It runs fine under
WinXP, but the range statement does not work under
Win2K. An example is
ThisDocument.Range(lngStart + 1, lngEnd).ConvertToTable
(Separator:=WdSeparator.wdSeparateByTabs,NumColumns:=intNr
Cols, AutoFitBehavior:=WdAutoFitFix.wdAutoFitContent)
Win2K does not like the range statement that uses a
computed start value and a computed end value. It works
ok if you use something like ThisDocument.Range.End for
the range computations. It seems to choke on user
defined variables. When I run the above code under Win2K
I get the "Type mismatch" error. The exact same code
runs fine under XP. Is there a workaround for this
problem or am I going to have to install XP on my Win2K
server?
Thanks,
James J.
generates a report in Word2003. It runs fine under
WinXP, but the range statement does not work under
Win2K. An example is
ThisDocument.Range(lngStart + 1, lngEnd).ConvertToTable
(Separator:=WdSeparator.wdSeparateByTabs,NumColumns:=intNr
Cols, AutoFitBehavior:=WdAutoFitFix.wdAutoFitContent)
Win2K does not like the range statement that uses a
computed start value and a computed end value. It works
ok if you use something like ThisDocument.Range.End for
the range computations. It seems to choke on user
defined variables. When I run the above code under Win2K
I get the "Type mismatch" error. The exact same code
runs fine under XP. Is there a workaround for this
problem or am I going to have to install XP on my Win2K
server?
Thanks,
James J.