mirror of
https://github.com/ONLYOFFICE/core.git
synced 2026-07-15 03:28:11 +08:00
32 lines
698 B
C++
32 lines
698 B
C++
// HtmlFile.cpp : Implementation of CWSHtmlFile
|
|
|
|
#include "stdafx.h"
|
|
#include "HtmlFile.h"
|
|
|
|
#include <EWSDocument.h>
|
|
|
|
// CWSHtmlFile
|
|
|
|
STDMETHODIMP CWSHtmlFile::LoadFromFile(BSTR sSrcFileName, BSTR sDstPath, BSTR sXMLOptions)
|
|
{
|
|
// EWSCORE::EWSDocument doc;
|
|
// bool res = doc.loadFrom(sSrcFileName, ef_HTML) &&
|
|
// doc.saveTo(sDstPath, ef_XLSX);
|
|
//
|
|
// return res ? S_OK : S_FALSE;
|
|
return S_FALSE;
|
|
}
|
|
|
|
|
|
STDMETHODIMP CWSHtmlFile::SaveToFile(BSTR sDstFileName, BSTR sSrcPath, BSTR sXMLOptions)
|
|
{
|
|
EWSCORE::EWSDocument doc;
|
|
bool res = doc.loadFrom(sSrcPath, ef_XLSX) &&
|
|
doc.saveTo(sDstFileName, ef_HTML, _bstr_t(sXMLOptions));
|
|
|
|
return res ? S_OK : S_FALSE;
|
|
}
|
|
|
|
|
|
|