从Windows C#表单打开powerpoint演示文稿 [英] Open powerpoint presentation from a Windows C# form

查看:71
本文介绍了从Windows C#表单打开powerpoint演示文稿的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我和Josep在这个帖子中有同样的问题:http://bytes.com/forum/thread272940.html除非我尝试编译程序时出现一些错误(其中6个是准确的)


它们如下。


C:\Documents and Settings\Tom\Desktop\Work\High School US \\HighSchool US \HighSchool US \Form1.cs(129,45):错误CS0234:命名空间Microsoft.Office中不存在类型或命名空间名称核心(您是否缺少程序集?参考?)

C:\Documents and Settings \Tom\Desktop\Work \ High School US \ HighSchool US \HighSchool US \Form1.cs(134,13) :错误CS0103:当前上下文中不存在名称''objPres'

C:\Documents and Settings \Tom \Desktop\Work \ High School US \ HighSchool US \HighSchool US \Form1.cs(134,48):错误CS0103:名称''MsoTriState''不存在我n当前背景

C:\Documents and Settings \Tom \Desktop \ work \High School US \HighSchool US \HighSchool US \Form1.cs(135,13 ):错误CS0103:当前上下文中不存在名称MsoTriState

C:\Documents and Settings \Tom \Desktop\Work \ High School US \ HighSchool US \HighSchool US \Form1.cs(135,34):错误CS0103:当前背景下不存在MsoTriState这个名称


现在,请带记住我还在学习C#并且对C ++有一点了解,所以我可以得到一些但是我可能需要一个更加愚蠢的版本。


此外,因为这段代码并不是我想要在主板上发布的内容,如果您认为可以帮助我,请告诉我。 :)


-Tom


编辑:这是我从旧帖子中粘贴的代码片段

I have the same exact question as Josep in this thread: http://bytes.com/forum/thread272940.html except when I try and compile the program I get a few errors (6 of them to be exact)

They are as follows.

C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(129,45): error CS0234: The type or namespace name ''Core'' does not exist in the namespace ''Microsoft.Office'' (are you missing an assembly reference?)
C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(134,13): error CS0103: The name ''objPres'' does not exist in the current context
C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(134,48): error CS0103: The name ''MsoTriState'' does not exist in the current context
C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(135,13): error CS0103: The name ''MsoTriState'' does not exist in the current context
C:\Documents and Settings\Tom\Desktop\Work\High School US\HighSchool US\HighSchool US\Form1.cs(135,34): error CS0103: The name ''MsoTriState'' does not exist in the current context

Now, please take in mind that I am still learning C# and know a little bit about C++, so I will be able to get some of it but I might need a more dumbed down version.

Also, since this code is not exactly something I want to post right up on the board, if you think you can help me please let me know. :)

-Tom

Here''s the snippet of code that I copy pasted from the old thread

推荐答案

或许 google.com 在您的情况下帮助您...键入如何在c#中打开powerpoint


joedeene
perhaps google.com help you greatly in your situation..."type in how to open a powerpoint in c#"

joedeene



也许 google.com 在您的情况下帮助您...键入如何在c#中打开powerpoint


joedeene
perhaps google.com help you greatly in your situation..."type in how to open a powerpoint in c#"

joedeene



不,它没有..导致我回到这里,以及链接到那个旧线程的其他网站。


我需要帮助解决它所给出的错误我。 :(

Nope, it doesn''t.. Leads me back to here, and other sites that link to that old thread.

I need help with the errors that it''s giving me. :(



不,它没有..引导我回到这里,以及链接到那个旧线程的其他网站。


我需要帮助解决它给我的错误。:(
Nope, it doesn''t.. Leads me back to here, and other sites that link to that old thread.

I need help with the errors that it''s giving me. :(



尝试探索这个区域< a rel =nofollowhref =http://msdn.microsoft.com/en-us/library/aa141420(office.10).aspx\"target =_ blank> MSDN网站。或查找关于Powerpoint.Application类的教程?


joedeene

try exploring areas of this MSDN site. or looking up tutorials on the Powerpoint.Application class?

joedeene


这篇关于从Windows C#表单打开powerpoint演示文稿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆