programmatically call and present a power point presentation - c#

I have an ASP.NET C# web application where users can upload their PowerPoint presentations(ppt files). I want programmatically (with C#), to call a power point presentation and be able to present it from a webpage. Is it possible? And how can I do this?

You can use Interop to save the uploaded Powerpoint presentation as a series of graphics (e.g. PNG). Within Powerpoint, that would be File / Save As / *.png. You can accomplish the same programatically. Running interop code from ASP.Net is not a good idea. You can run a windows service that watches for uploaded ppt files and converts them to a corresponding series of images.
This would not preserve transitions and animations, but would otherwise work fine.
You can then use a slideshow gallery to display the various images (e.g. using Flash or JavaScript... there are many solutions available on the web).
Alternatively if you can ensure that the end user has at least the free Powerpoint viewer installed, you can return the ppt file to them with the appropriate mime type set, and the viewer will display it.

Change the Powerpoint presentation into series of graphic using interop assembly as Eric said
To make slideshow gallery you can follow below link which illustrated it very well with coding. You have to use javascript to accomplish it.
Visit http://www.c-sharpcorner.com/uploadfile/anjudidi/making-an-image-slideshow-in-Asp-Net/
The below link also show how to create slide show but it is taking graphics from database.
http://www.aspdotnet-suresh.com/2011/12/jquery-lightbox-image-slideshow-gallary.html

Related

Generate thumbnail of Microsoft Docs

Just wondered if it was possible to create a thumbnail / GIF image of a microsoft word document on the fly with C#?
I am working on a web application which is required to generate and display a thumbnail of various microsoft docs such as word, excel, ppt, etc..
They seem to be able to do it on Microsoft.com (see http://office.microsoft.com/template...3601033&CTT=98, for example) - Is there a function which does this?
Yes, it is possible. You can go through these links:
http://support.microsoft.com/?kbid=319350
http://www.geekpedia.com/tutorial219_Extracting-Icons-from-Files.html

How to merge different document types and show as stack in .NET application

Suppose in .NET (don't care what language) I want to show a user a PDF, Word and Excel file together. I am trying to replicate a document process where a user might have a PDF file and he would like to attach a WORD file and an Excel file let's say to make a stack of documents (that I would save in some directory). Then he would like to click on a button and see a stack of these documents in 1 application of some sort.
How can I display the stack of documents WITHOUT first opening WORD, then openinig EXCEL and then openining ADOBE ACROBAT - this would be really annoying for the user. I would like one unified application or some idea to mimic one in .NET that can just show all 3 documents as if they were printed one after the other on paper. (I hope I am explaining this clearly)
The only thing I can think of to do this would be to leverage some sort of PDF conversion process to create one PDF file containing all three of these documents in "printed" (page-by-page) form, and then show that. The one application I can think of that could show all of these files is a web browser with appropriate Office and Acrobat viewer plugins, and you might find it difficult to leverage that, as browser preference and other user OS settings can cause various strategies for application launching to fail.
I would convert the documents in PDF and develop a pdf viewer inside your application.
I would use a ready made library for that, don't reinvent the wheel.
For example: http://www.quickpdflibrary.com/products/quickpdf/index.php

A Silverlight reporting solution where silverlight tables can be scheduled to be delivered as pdf/excel

first of all let me give you the context. I've been asked to create a Silverlight reporting application which allows users to view tables/charts of data and then schedule these controls to be emailed (in pdf or excel format) at a later date when new data becomes available.
I have written an application to do this using webforms for a previous company, essentially the report generation was triggered via a service which executed the web application pages and i was able to generate pdfs from the html strings, however my new company would like a silverlight app and I'm not so sure whether it's possible.
I DO KNOW: That I can use WriteableBitmap to render an image of a report control (ok for PDF), for excel I can use the export to excel functions on various grids.
Questions:
Can I talk to a silverlight app from a windows service and execute methods on the app including rendering controls? (I have a feeling that the client side nature of silverlight may stop me doing this).
If i can execute methods, then i assume that i will be able to intercept an export to excel stream and create an attachment with the excel mime type (if not already set)?
Please don't hit me with "why don't you just use Reporting Services" argument.
I'd be grateful for any comments and guidance.
I think you may try ActiveReports to accomplish the task you are looking for . ActiveReports does come with a SilverLight report viewer,Windows Forms Viewer and a Web based viewer. ActiveReports also has the ability to create charts and lets you add custom controls to the report.About exporting capabilities ,yes ActiveReports lets you export reports to PDF,Excel,Tiff,RTF,Html etc even on the SilverLight environment.
You can find some information regarding this here:
http://blogs.gcpowertools.co.in/2012/05/exporting-reports-using-active-reports.html

Choosing a cross-platform library for PDF rendering and analysis app (preferably using C#)

I am planning to write an app that can open and display PDF documents, and perform OCR on vector graphic elements within the PDFs. The user must be able to select regions of the document and I need to draw real-time annotations on the document. I don't need to alter or save the document itself.
I have plenty of experience with C# and WPF; I have written a similar application already that does the above on XPS/XAML documents rather than PDF. However that app only runs on Windows and PDF documents must be converted to XPS first.
I have done quite a bit of research and there are many, many options available, none of which seem an obvious choice. There are many libraries that can open PDFs or create PDFs, but most don't seem to give you access to individual vector graphic elements in a format that lets you draw/manipulate them on the screen (similar to what I could do with WPF graphic elements extracted from XPS documents).
I am familiar with .Net and C# (including .Net 2 GDI+ graphics) and I am very keen to stick to what I know. I am also using EmguCV for image recognition which can be compiled in Mono or .Net. As such I am looking at Silverlight (running standalone) or Mono options, both of which should run on PC and Mac.
Performance (for both graphics and number crunching) is a strong consideration, though I am just as interested in getting this up and running quickly.
Does anyone have any experience with opening PDFs, extracting vector graphic elements (perhaps as SVG) and rendering them in a Mono app? Can individual elements be rendered to bitmap?
Alternatively, does anyone have experience with opening PDFs in Silverlight and converting them to XPS or XAML at runtime? I know that WPF and Silverlight graphics libraries are not 1:1, but I'm not sure how this affects XPS contents (generally composed of Canvas, Glyphs and StreamGeometry objects).
Thank you for any advice, tips or links you have to share.
look at this
http://silverpdf.codeplex.com/
it's client side pdf reading library. actually right now it can only read files, but you could play with it and make your own "display" functionality.
You might want to examine the internals of your PDFs so you understand what they actually contain better - you might be very surprised! For example, text can often be scanned pages or images and vecotr graphics do not exist as neat little packages. We wrote a whole load of general articles about what is inside a PDF and analysis tools at http://www.jpedal.org/PDFblog which are not specific to any tool or language.

How can I display flashfilms in ASP.net?

In my current project I have the following situation: A multipage PDF gets rendered by some nasty software into a flash film. My job is to display that rendered flashfilm (will be rendered as file) in my current asp.net application.
I don't know what the rendered flashfilm will look like, but I assume all flash files behave the same? Or are there differences I should know about.
What options do I have to display that flashfilm? Does ASP.net support some built-in object oriented control that allows me to display flashfilm?
You can easily display any flash file by using a plethora of techniques. And it's not built-in, but there are a number of controls and other libraries built by the community to deal with displaying flash content in asp.net, such as Flash Control (http://flash-control.net/)
what you refer to as a flash film is a .swf file. the recommended way to embed .swf files is SWFOBject , a javascript library
http://code.google.com/p/swfobject/
now, i'm no asp specialist , but you may be able to fill the gap between javascript & asp.
hope it helps!

Categories

Resources