Search This Blog

Wednesday, 9 July 2014

X++ code to open the Excel as Read Only Mode


Hi Guys,

setFileAttribute method is used to open the file in read only mode , but mode value must be 1

Example:

filename= "C:\Users\chagirathi\Desktop\Master Cost Card Field Maping (1).xlsx";
Winapi::setFileAttributes(filename,1);

Happy Daxing....

No comments:

Post a Comment