Hello everyone,
I'm trying to figure it out how to set the layout of an ODF doc to landscape instead of portrait, and until now no results.
Does anyone has any clue on this?
Regards,
Coss_cat
CODE of cpp file(the .h contains all necessary; the code compiles well):
size.setHeight(225);
size.setWidth(300);
m_document->setPageSize(size);
// Cursor for traversing the document
//use the cursor to write things
//blah blah blah
QTextDocumentWriter writer;
writer.setFormat("odt");
writer.setFileName(docfilename.toAscii());
writer.write(m_document);
m_document = new QTextDocument();
QSizeF size;
size.setHeight(225);
size.setWidth(300);
m_document->setPageSize(size);
// Cursor for traversing the document
m_cursor = QTextCursor(m_document);
//use the cursor to write things
//blah blah blah
QTextDocumentWriter writer;
writer.setFormat("odt");
writer.setFileName(docfilename.toAscii());
writer.write(m_document);
To copy to clipboard, switch view to plain text mode
Bookmarks