How to open a Word document with C #

zhaozj2021-02-16  72

object fileName = Environment.CurrentDirectory "// example3"; object optional = Missing.Value; #if OFFICEXP _Document doc = app.Documents.Open2000 (ref fileName, # else _Document doc = app.Documents.Open (ref fileName, # endif Ref Optional, Ref Optional, Ref Optional, Ref Optional, Ref Optional, Ref Optional, Ref Optional, Ref Optional, REF OPTIONAL, REF OPTIONAL, REF OPTIONAL

See: http://www.microsoft.com/china/msdn/archives/library/dnexcl2k2/html/odc_offcs.asp#odc_offcs_wd2

转载请注明原文地址:https://www.9cbs.com/read-12297.html

New Post(0)