Generate thumbnail of Microsoft Docs - c#

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

Related

Is it possible to generate .docx files without having MS Word installed?

I want to use "OLE automation" (or whatever it's called now) to generate a Word document.
I assume that it's possible to perform the following programmatically:
Set page size (height, width, margin vals)
Set font type/name, style, and size
Add page numbering
Add pages
Insert page breaks
What I'm not sure of is if I need to have MS Word on my system to do this (to have the necessary DLLs, perhaps)? I use Open Office (I like it, and it's free), but I reckon controlling the creation of docs programmatically is probably easier/better documented for MS Word than it is for Open Office and/or Libre Office - that's why I'm strongly considering making this "rendezvous with Redmond."
This question is tangentially related to this one
If Google Docs is a possibility here, I'd be willing to have a "meeting with Mountain View" but I know nothing about that file format or whether it can be "automated" etc.
I need to end up with something that I can either convert to a PDF file or a DOCX file. Open Office can open DOCX and convert files to PDF, but I don't know about Google Docs.
I've found https://docx.codeplex.com/ to be very useful in dynamically building docx documents.
Yes,
it is possible. Check this link: http://www.microsoft.com/en-us/download/details.aspx?id=30425
this is a library for open xml documents (*.docx, *.xlsx and powerpoint files)
yes you can Use Openxml , also with openXml you can create Excel Pdf and ...
Check This out
You can use this library to generate document by template:
https://github.com/StasClick/DocumentGenerator
'DocumentGenerator' can generate one leaflet, multiple leaflets in one document or registers.

programmatically call and present a power point presentation

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

Code alternatives for document imaging in C# (Not OCR)

I have been asked to design a web based document imaging solution in C#. So far I have found only expensive SDK modules like Accusoft's ImagXpress and the like. MODI looked promising but seems more OCR centric which might be above and beyond the scope.
Is there a solution in .Net that would allow me to code in the document scanning, manipulation / viewing with the PDF format without buying expensive SDK's? I am hoping for a point in the right direction to research.
Simple Scope:
Scan document to PDF format
View/save document
Any help is greatly appreciated.
Thanks in advance!
You could use Silverlight to acquire a raster image, then use a PDF generation library either in Silverlight or Asp.net (server-side) to generate the PDF.

free Graph Drawing SDK for ASP.NET

I want to draw a mathematical graph in my asp.net web application. Is there any free control for doing this work?
I see http://www.yworks.com but it is not free.
Following are the under Microsoft Public License (Ms-PL) license and
You might want to check out QuickGraph.
NodeXL might also be of interest (visualization library). It's WPF, but you can use a container to host it if you need WinForms.
You can use check GraphViz to generate this sort of graph. My app generates the .dot file that can then is then passed into GraphViz. It supports a load of file formats, such as bmp, jpg, png, pdf, svg etc etc.
Reference:
Open Source tools list
C# graph drawing library?
Drawing a Web Graph
You could use QuickGraph to easily model the graph programatically, then export it to GraphViz or GLEE, then render it to PNG.
Under Eclipse open source license there is Graphviz
It has many language bindings including C#.

Generate report with chart and save it to pdf

I am developing application wich produce a report with graph. I read about free C# libraries to create PDF but I can't see any completely FREE geenrator to use in application that I want to sell. Can you give me one?
Other problem is to generate a simple chart. What are the tools to create such a graph? I need to put it into pdf document after generating it.
Thx for help!
PDF reporting could be done using nfop. I know someone who has done PDF with that, but I do not know more.
Regarding the charting: you could use Microsoft Chart controls, render to an image and include an image in the PDF.

Categories

Resources