Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi everyone
i have been discovering alot of things lately that i thought was impossible. So now i want to ask this question. Is it possible to copy text from a winform say form1 textbox and label by the click of a button to a powerpoint document and print it ?. That is i want to have the powerpoint document saved in my application just like a form so that i can deploy it with my application. Now when a user accesses the powerpoint document in my application, it is opened with microsoft powerpoint which must be installed in the user computer for it to open else a messagebox should be displayed "ms office not installed". Now when the document is opened the text from the label an textboxes should be copied from fom1 to repective position in the powerpoint document so user can print or save it, but the changes made cannot affect the powerpoint document which is in my application.
Please provide namespaces and comments in the code for better undastanding and if there is a part in the question you do not undastand please ask me to xplain more.
Posted
Comments
Durrett 25-Aug-17 6:46am    
What you need to do is create a ".potx" file, which is a PowerPoint presentation template file that cannot be re-saved, it must be saved as ".pptx". You can then open that presentation, modify it and save as .pptx file in c# or vb.net.

1 solution

hi,

look into the MSDN article[^] about automating the MS power point into the .net application. So, as the article says, you can add slides, graphics, images texts etc. so, you can pass the textbox text into the slides and you can show to the user.

probably it will handle all your requirement.

refer these links also.

http://support.microsoft.com/kb/303718[^]
http://www.aspose.com/categories/.net-components/aspose.slides-for-.net/default.aspx[^]
http://msdn.microsoft.com/hi-in/magazine/cc163471(en-us).aspx[^]

hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900