How to hardcode username/pwd in the open doc function.
can you please provide the complete opendoc function