Hi everyone,<br>I'm developing my own program that allows to open xls files. However, one thing appears that seems to be impossibe overcome.<br><u><i>Following are functions I used:</i></u><br><br>       m_document = KParts::ComponentFactory::createPartInstanceFromQuery<KoDocument>(<br>

                mimetype, QString(),<br>                0, 0, QStringList(),<br>                &errorCode);<br><br>      m_document->openUrl(url)<br><u><i><br></i></u>    spreadView = qobject_cast<Calligra::Tables::View*>m_document.createView();<br>

<br><u><i>And after opening this file, I convert to tables:</i></u><br><br>     KSpread::Doc *spreadDoc = qobject_cast<KSpread::Doc*> (document()); //Function document() return m_document above.<br>        if (!spreadDoc)<br>

            return NULL;<br>        KSpread::Sheet *sheet = spreadDoc->map()->sheet(pageIndex);<br>        if (!sheet)<br>            return NULL;<br><br>        QSize sheetSize = getContentSize(pageIndex);<br>        //set active current sheet<br>

        spreadView->setActiveSheet(sheet);<br>        spreadView->setFixedSize(sheetSize);<br>        spreadView->canvasController()->setDocumentSize(sheetSize);<br>        controller()->setFixedSize(sheetSize);<br>

<br><u><i>When I call show() function, a widget appears, however, only scroolbars showed, but no sheets can be seen</i></u>.<i><u> Sheet area has white color. How can I solve this?</u></i><br><br>-- <br>Do Huu Tien<br>Handphone No: 0972471786<br>

Email: <a href="mailto:tiendh11986@gmail.com" target="_blank">tiendh11986@gmail.com</a><br>Y!M: dohuu_tien86<br><br>