word file preview on asp.net page
is there any way to show a preview content of word file?? like sample application开发者_JAVA百科 feed viewer? if so please help me?
One approach is:
- Convert MS Word file to images. I.e. print first couple of pages to image. This can be done on command line with Open Office or by installing a printer driver that prints to images.
- Use these images for preview
Since this takes too much time to be done on-demand, you will have to batch-process all existing documents and schedule processing for new documents as these are added to the system.
Take a look at this article Which describes writing a custom server control that can show word documents in a web page.
Yes there is a way, you can convert Word file to HTML and than display it on your ASP.NET page.
精彩评论