Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Workbook^ LPOpen(Excel::Application^ xl, String^ strPath)
- {
- try {
- String^ strFullPath = System::IO::Path::GetFullPath(strPath);
- Workbook^ wb = xl->Workbooks->Open(strFullPath,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing,
- Type::Missing, Type::Missing);
- return wb;
- }
- catch (Exception^ e) {
- Console::Write("{0}\n", e->Message);
- }
- return nullptr;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement