Creating Microsoft Powerpoint presentation dynamically
-
Hello all, I need to create Powerpoint presentation using asp.net.The format for the presentation is predefined, so I need to use a template for the presentation.This presentation should be generated on the client side. If anyone of you have any idea how to go about that, then please let me know. Thanks in advance :-)
Thanks, Avanika
-
Hello all, I need to create Powerpoint presentation using asp.net.The format for the presentation is predefined, so I need to use a template for the presentation.This presentation should be generated on the client side. If anyone of you have any idea how to go about that, then please let me know. Thanks in advance :-)
Thanks, Avanika
May be you can try using macros for that. I am not sure if you really want to build the presentation at client side. Why not you try building at server side and then post at client?
- ashish
-
May be you can try using macros for that. I am not sure if you really want to build the presentation at client side. Why not you try building at server side and then post at client?
- ashish
Can you please explain a little more? I got to know after doing some R&D that one way to do is through Office Automation, and this way the presentation would be generated on the server side. How to post it at client.Another point I am doubtful about its behavior in multiuser application. Can you please explain you point little more?
Thanks, Avanika
-
Hello all, I need to create Powerpoint presentation using asp.net.The format for the presentation is predefined, so I need to use a template for the presentation.This presentation should be generated on the client side. If anyone of you have any idea how to go about that, then please let me know. Thanks in advance :-)
Thanks, Avanika
Hi, Pls use the Macro and array in your application Form. I hope it will Works. any help pls follow this link http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_OFCallVBAFromAddin.asp[^] this will help u in Creating the Power Point Presentation. Happy Coding
with regards Sathesh
-
Can you please explain a little more? I got to know after doing some R&D that one way to do is through Office Automation, and this way the presentation would be generated on the server side. How to post it at client.Another point I am doubtful about its behavior in multiuser application. Can you please explain you point little more?
Thanks, Avanika
you can use following code to push ppt file to client. try { Byte [] bytes = GetFileContents(filePath);//Get file contents as array of bytes Response.Clear(); Response.AddHeader("Content-Disposition", "attachment; filename=File" + _fileExtension); //File extension is ppt in your case Response.AddHeader("Content-Length", bytes.Length.ToString()); Response.ContentType = "application/octet-stream"; Response.Buffer = true; Response.BinaryWrite(bytes); Response.Flush(); } catch(FileNotFoundException fnfe) { //File not found } catch(Exception ex) { //Some exception }
- ashish