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