Exporting

• Oct 26, 2014 - 16:43

Even though I did export file over and over again, the file was not saved as xml. I was able to find XML FIle where I saved. Is anybody to export as xml this file for me?

Attachment Size
We were made to worship_test.mscz 10.28 KB

Comments

What specifically went wrong when It worked fine for me too. What specifically went wrong? What OS are you on, what menu option did you use, what filename did you give the file, what folder did you save to?

When I tried it, it saved just fine, but then I got an error message when I tried to laod the XMl file. I chose to ignore the error and it loaded fine as far as I could tell.

In reply to by jpfle

Since this commit was to solve a problem occurring only on Linux, what about using conditional blocks? Something like:

#ifdef Q_OS_LINUX
  QString name = QString("%1/%2.pdf").arg(
  saveDirectory).arg(cs->name());
#else
  QString name = QString("%1/%2").arg(
  saveDirectory).arg(cs->name());
#endif;

In reply to by jpfle

Strange, i did test whether this change had ill effects on Windows and couldn't find any. But I tested with Windows 7, not with XP. So if changing this conditionally, we may restrict it to that?
I think I had similar problems when I was still using XP (and that it was some bug in Qt for XP), so this very well might be an XP only issue.

In reply to by Jojo-Schmitz

But I tested with Windows 7, not with XP. So if changing this conditionally, we may restrict it to that?

Yes, it may be better. So what about the following:

if (QSysInfo::WindowsVersion == QSysInfo::WV_XP)
    QString name = QString("%1/%2").arg(saveDirectory).arg(
    cs->name());
else
    QString name = QString("%1/%2.pdf").arg(saveDirectory).arg(
    cs->name());

Do you still have an unanswered question? Please log in first to post your question.