Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65344

Powerpoint application and pdf export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.9.3, 5.10.0
    • ActiveX Support
    • None
    • Windows 10 64 bits

      Powerpoint 2016

      Qt 5.9.3 msvc2017 64 bits

       

    Description

      HI,

      I try to export a powerpoint file in pdf with the ExportAsFixedFormat method

      QAxObject *officeApplication = new QAxObject("Powerpoint.Application");

      QAxObject *document = documents->querySubObject("Open(const QString&, bool)", myPPFile, true);

      document->querySubObject("ExportAsFixedFormat(QString, PpFixedFormatType)", outputPathWindows, "ppFixedFormatTypePDF");

      The output response is :

      QAxBase: Error calling IDispatch member ExportAsFixedFormat: Type mismatch in parameter 1

      I have print out all the methodSignature() and for  {{ExportAsFixedFormat,}}the output gives :

      "ExportAsFixedFormat(QString,PpFixedFormatType)"

       

      The same call of ExportAsFixedFormat works with Word and Excel.

      if (application == "Word.Application")
              document->querySubObject("ExportAsFixedFormat(QString, WdExportFormat)", outputPathWindows, "wdExportFormatPDF");

          if (application == "Excel.Application")
              document->querySubObject("ExportAsFixedFormat(XlFixedFormatType, QString)", "xlTypePDF", outputPathWindows);

       

      I don't know if it is a bug or something I'm doing wrong.

      Sincerely

      Attachments

        1. qtbug65344_diag.diff
          5 kB
        2. qtbug65344_ppt_log.txt
          68 kB
        3. qtbug65344_word_log.txt
          240 kB
        4. qtbug65344.zip
          43 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kleint Friedemann Kleint
            romain_jourdan Romain Jourdan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes