Stream to the client and open in PowerPoint
When you pass an HttpResponse object to Save , PowerPointWriter will stream the generated PowerPoint file to the client. The browser will display a File Download dialog asking the user to open or save the file. The method's second parameter specifies a file name to display in the File Download dialog. If the method's third parameter - openInBrowser - is false and the user chooses to open the Excel file, the file will open in Microsoft PowerPoint.
//--- Stream to the client
//--- "Output.pptx" will appear in the Save As dialog
//--- The file will open in PowerPoint
pptTemplate.Save(Page.Response, "Output.pptx", false);
|
'--- Stream to the client
'--- "Output.pptx" will appear in the Save As dialog
'--- The file will open in PowerPoint
pptTemplate.Save(Page.Response, "Output.pptx", False)
|
Stream to the client and open in the browser window
When you pass an HttpResponse object to Save , PowerPointWriter will stream the generated PowerPoint file to the client. The browser will display a File Download dialog asking the user to open or save the file. The method's second parameter specifies a file name to display in the File Download dialog. If the method's third parameter - openInBrowser - is True and the user chooses to open the PowerPoint file, the file will open in the browser window.
//--- Stream to the client
//--- "Output.pptx" will appear in the Save As dialog
//--- The file will open in the browser's Excel 2007 plug-in
pptTemplate.Save(Page.Response, "Output.pptx", true);
|
'--- Stream to the client
'--- "Output.pptx" will appear in the Save As dialog
'--- The file will open in the browser's PowerPoint plug-in
pptTemplate.Save(Page.Response, "Output.pptx", True)
|
|