none
Mail.SaveAs() error RRS feed

  • Question

  • While saving the mails from the Outlook through the QT Creator, compiler error appears:

    QAxBase: Error calling IDispatch member SaveAs: Exception thrown by server

    Code : 4096

    Source : Microsoft Outlook

    Description: The operation failed.

    Help :

    The code looks like:

    QDir dir("C:\\QL_Export\\DocID_"+QString::number(_docid)+"_"+qslt[i]);
                                if(dir.exists()){
                                    mail->SaveAs("C:\\QL_Export\\DocID_"+QString::number(_docid)+"_"+qslt[i]+"\\"+subj+".msg");
                                }else{
                                    dir.mkpath(".");
                                    mail->SaveAs("C:\\QL_Export\\DocID_"+QString::number(_docid)+"_"+qslt[i]+"\\"+subj+".msg");
                                }  
    Also there is another error with description:

    QAxBase: Error calling IDispatch member ReceivedTime: Exception thrown by server

    Code : 4096

    Source : Microsoft Outlook

    Description: Your Digital ID name cannot be found by the underlying security system.

    Help :


    In this part, I m trying to get the received time of message to sort the messages by the received time.

    please help!

    Wednesday, September 18, 2019 6:42 AM

All replies