473,320 Members | 1,977 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Previewing file in browser?

Hi all,
I have a question concerning previewing a file in an ASP.NET
application. I would like to have a feature that a file on the server
(like powerpoint, word, pdf or excel file) could be previewed in the
browser. So in fact the same as what happens in the preview pane of
Outlook, but then in a web page.
Does anyone have any idea whether this can be achieved and how?
Thanks!
Kind regards,
Ludwig

Oct 2 '07 #1
1 1264
Hello Ludwig
I have a question concerning previewing a file in an ASP.NET
application. I would like to have a feature that a file on the server
(like powerpoint, word, pdf or excel file) could be previewed in the
browser. So in fact the same as what happens in the preview pane of
Outlook, but then in a web page.
Does anyone have any idea whether this can be achieved and how?
You can use an Html IFrame Element, that points to your file that should be
previewable,
that would be a simple and generic solution.
However, on the client side, every programm that handles the filetypes
(Office, ...) have to be installed.

The other aproach is to create thumbnails of your files at the serverside,
and send them as an Image (for example througth a HttpHandler) to the
client.
There are some components out there, where support this kind of
convertations, but most of them are for pdf files.
I have never seen a converter component that converts doc directly to an
image... but you can first convert from doc to pdf and then create an
thumbnail of the pdf...

--
Gruss, Peter Bucher
Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
Oct 2 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ray | last post by:
Hi all, I would like to ask is there any method for printing the crystal report directly by choosing printer without previewing the report using CrystalReportViewer? Thanks a lot, Ray
1
by: Ray | last post by:
Hi all, Is it possible to print the crystal report directly in vb.net without previewing it? Thanks a lot, Ray
1
by: Matthew Jones via .NET 247 | last post by:
I'm trying to display/Preview a PDF file in a vb.NET form, a little like a RichTextBox Control but a PDF instead. Any Suggestions? I don't want to edit it, just print it. ...
1
by: JerryShea | last post by:
Hi, I am opening a word document (RTF) in a webbrowser control and automating it. Most automation features seem to work but when I execute: wordApp.ActiveDocument.PrintPreview() I get an...
0
by: Matt | last post by:
Has anyone had the occasion to write an app to print to a Zebra barcode printer? We have a Z4M I am working with. I have it working fine, in sending ZPL commands to a text file then dumping it to...
2
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i have a file upload control and when i specify a file name to upload, what would be the easiest way to provide a preview button at this time? i have the the byteData and i have the...
1
by: cek172 | last post by:
Currently I have a report that opens from a form and can be printed by pressing the print button on that page. I want to be able to print the report straight from the form without previewing it. Is...
2
by: vipinkmathews | last post by:
I wrote code for previewing a word dcoument in C#. In the code when the user click preview button the document gets opened and later the user manually closes the document. But in Task manager the...
4
by: Steve Swift | last post by:
I have a page that accepts user input, including HTML. I would like to offer a preview of what the users HTML will look like, but I'd also like to avoid having to parse their HTML to ensure that it...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.