superlee1117

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Unable to import PowerPoint presentation #9253
    superlee1117
    Member

    Thank you Alain. But is your code invoking Office PPT 2007 APIs? I found the new PP.Application() is so different from mine (PowerPoint_Class.Application app).

    And what is my ppt application opening is the html files because I am using it to re-save the html files to ppt file.

    If your code can handle opening html to ppt, I can send you my original ppt file. You can first save it to html format and then use your code to re-save it to ppt, then you should find there is a problem.

    Is there a button to attach a file here?

    in reply to: Unable to import PowerPoint presentation #9251
    superlee1117
    Member

    Hi Alain,

    I am now meeting with the similar problem as Start4Life was.

    My error message is the same with his. I debugged my code and this error reports when it comes to this line of code (C#).

    m_presentation = (PowerPoint_Class.Application)m_pptAp.Presentations.Open(m_originalFileName,
    MS_FALSE, MS_FALSE, MS_FALSE);
    Please ignore the grammer issue of this line of code. It does not look good since I only copied it from the whole cs file of my project.

    I also tried your checkPPTex.zip and following output is printed.

    output:
    Check CURRENT_USER…
    Found nothing
    Check LOCAL_MACHINE…
    Found something: C:\PROGRA~1\MICROS~2\Office12\POWERPNT.EXE
    Check if file exists
    Found.
    Check version
    major: 12
    minor: 0
    Connect to PPT DLL
    Connected to PPT DLL
    Presentation Opened
    Slide Number: 3
    Slide Index: 0
    Shape Count: 3
    Shape Index: 0
    Shape Is Text
    Text is:tralala
    Slide Index: 1
    Shape Count: 3
    Shape Index: 0
    Shape Is Text
    Text is:Title.
    Shape Index: 1
    Shape Is Text
    Text is:Pouet
    pouet
    Slide Index: 2
    Shape Count: 3
    Shape Index: 0
    Shape Is Text
    Text is:zomg
    Shape Index: 1
    Shape Is Text
    Text is:It is not working

    Could you please give me some guide on this problem? Thanks in advance.

    If you need more information besides above, please let me know and I can try to collect more findings.

Viewing 2 posts - 1 through 2 (of 2 total)