c++怎么打开pptx文件_什么是PPTX文件(以及如何打开一个文件)?

c++怎么打开pptx文件

c++怎么打开pptx文件

A file with the .pptx file extension is a Microsoft PowerPoint Open XML (PPTX) file created by Microsoft PowerPoint. You can also open this type of file with other presentation apps, like OpenOffice Impress, Google Slides, or Apple Keynote. They are stored as a compressed ZIP file, which use a bunch of other files with formatted text, images, videos, and more to open them.

具有.pptx 文件扩展名文件是Microsoft PowerPoint创建的Microsoft PowerPoint Open XML(PPTX)文件。 您还可以使用其他演示文稿应用程序(例如OpenOffice Impress,Google Slides或Apple Keynote)打开此类文件。 它们被存储为压缩的ZIP文件,该文件使用一堆其他文件以及格式化的文本,图像,视频等来打开它们。

什么是PPTX文件? (What Is a PPTX File?)

PPTX files are used in Microsoft PowerPoint, a presentation program used to display content in a slideshow format. Each slide can contain graphics, formatted text, videos, music, animations, and more.

PPTX文件在Microsoft PowerPoint中使用,Microsoft PowerPoint是一种演示程序,用于以幻灯片格式显示内容。 每张幻灯片可以包含图形,格式文本,视频,音乐,动画等。

First introduced with Microsoft Office 2007 in the Office Open XML standard, PPTX is the default format when creating a presentation using modern versions of PowerPoint. Microsoft introduced this open format largely due to increased competition from Open Office and its Open Document Format (ODF). The PPTX format replaced the proprietary PPT format that PowerPoint used previously.

PPTX最早在Office Open XML标准中随Microsoft Office 2007一起引入,是使用现代版本的PowerPoint创建演示文稿时的默认格式。 Microsoft引入此开放格式的主要原因是来自Open Office及其开放文档格式(ODF)的竞争加剧。 PPTX格式替代了PowerPoint以前使用的专有PPT格式。

如何打开PPTX文件? (How Do I Open a PPTX File?)

Because PPTX files have become standardized, you can open them in many applications on different platforms. Although Windows doesn’t natively open them unless you have a copy of Microsoft Office 2007—or PowerPoint 2007—or later, you can download a third-party open-source application like Apache OpenOffice or LibreOffice to open your files.

由于PPTX文件已经标准化,因此可以在不同平台上的许多应用程序中打开它们。 尽管Windows不会本地打开它们,除非您具有Microsoft Office 2007或PowerPoint 2007或更高版本,但是您可以下载第三方开放源代码应用程序(例如Apache OpenOfficeLibreOffice)来打开文件。

Mac users only need to double-click the file to have it open up in the Apple Keynote application.

Mac用户只需双击该文件即可在Apple Keynote应用程序中将其打开。

If you’d rather store, open, and edit all your Office Open XML files in the cloud, you can do so by uploading your document via PowerPoint Online or Google Slides.

如果您想在云中存储,打开和编辑所有Office Open XML文件,可以通过PowerPoint OnlineGoogle Slides上传文档来实现。

Alternatively, if you’re a Chrome user, you can download the extension Office Editing for Docs, Sheets & Slides (an official Google extension) for your browser. It lets you upload any PPTX file directly from your local hard drive to your Google Drive by dragging and dropping it into any Chrome tab.

另外,如果您是Chrome用户,则可以为您的浏览器下载扩展名“ Office Editing for Docs,Sheets&Slides” (Google的正式扩展名)。 通过拖放任何PPTX文件,您可以将其直接从本地硬盘驱动器上载到Google云端硬盘中。

翻译自: https://www.howtogeek.com/393248/what-is-a-pptx-file-and-how-do-i-open-one/

c++怎么打开pptx文件

用MFC 显示PPT //启动 PowerPoint: void CMainFrame::OnPowerpointStartpowerpoint() { /// Check if the IDispatch connection exists with PowerPoint, // if not create one. if (m_ppt.m_lpDispatch == NULL) { // Create IDispatch connection to PowerPoint. m_ppt.CreateDispatch("PowerPoint.Application"); }; // Bring the PowerPoint application to the front. m_ppt.Activate(); } void CMainFrame::OnPowerpointStartslideshow() { _Presentation oPresentation; SlideShowSettings oShow; // Attach to the Active Presentation. oPresentation.AttachDispatch(m_ppt.GetActivePresentation()); // Attach to the slide-show settings. oShow.AttachDispatch(oPresentation.GetSlideShowSettings()); // Run the slide show. oShow.Run(); } // 创建幻灯片: void CMainFrame::OnPowerpointCreateslide() { // Connect to the active presentation. There is no error trapping. // If the active presentation the framework traps // the error and displays a message box. _Presentation ActivePresentation(m_ppt.GetActivePresentation()); // Connect to the slides collection. Slides oSlides(ActivePresentation.GetSlides()); // This constant is defined in the PowerPoint Object model. // You can use the Object Browser, with Visual Basic Editor // (VBE), to look up the different constant values. const ppLayoutTitleOnly = 11; // Add a new slide to the presentation. This code adds the new // slide to the end of the presentation. oSlides.Add(oSlides.GetCount() + 1l, ppLayoutTitleOnly); } // 创建演示文稿: void CMainFrame::OnPowerpointCreatepresentation() { Presentations PresCollection; // Make sure there is a dispatch pointer for PowerPoint. if(m_ppt.m_lpDispatch == NULL) { // Display a message indicating that PowerPoint is not running. MessageBox("PowerPoint is not running.", "Start PowerPoint"); } else { // Bring PowerPoint to the front. m_ppt.Activate(); // Attach the presentations collection to the PresCollection // variable. PresCollection.AttachDispatch(m_ppt.GetPresentations()); // Create a new presentation. PresCollection.Add(1);
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值