Hi,
I'd like to export an spreadsheet to JPEG.
Unfortunately only 7 of 17 columns are contained int the jpeg file.
Is it possible to remove the padding? The jpeg should only contain the
table without space at it s borders?
The function for exporting the spreadsheet looks like this:
void
export2jpeg( Reference< XMultiServiceFactory > const& xMainComponent,
std::string const& documentFile) {
Reference< XStorable > xStore{ xMainComponent, UNO_QUERY };
Sequence< PropertyValue > storeProps{ 1 };
storeProps[0].Name = OUString::createFromAscii("FilterName");
storeProps[0].Name = "FilterName";
storeProps[0].Value <<= OUString::createFromAscii("JPEG - Joint
Photographic Experts Group");
xStore->storeToURL( OUString::createFromAscii( documentFile.c_str() ),
storeProps);
}
Thank you in advance.
Oliver
Context
- problems exporing spreadsheet to JPEG · Oliver Kowalke
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.