I need to create Biff8 files from code running on a server. Rendering is a nice side feature of the control (the main being report viewing). Net Report Viewer control to render Excel 97 Biff8 files. I find myself in a tight spot and there isn’t much I can do. HResult = pStream->Read(&len, 2, &dwRead) If( (FAILED(hResult)) || (dwRead != 2) ) break HResult = pStream->Read(&id, 2, &dwRead) HResult = pStorage->OpenStream(L"Workbook", NULL, STGM_READ |STGM_SHARE_EXCLUSIVE, 0, &pStream) Ĭhar buf DWORD dwRead = 0 short id = 0, len = 0 HRESULT hResult = ::StgOpenStorage(L"C:\\MyExcel.xls", NULL, STGM_READ |STGM_SHARE_DENY_WRITE, NULL, 0, &pStorage) Can someone help me convert the code below from C++ to VB.net? Thank you in advance. I am not familiar with C++ (and do little to nothing with binary files). The code below looks for worksheet names in a excel file. ![]() I found some code on the web a while back.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |