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!
Related
i'm a student that learning coding and i'm very new in asp.net. i'm learning on how to print a document that able to design by coding. i tried with C# WPF by using FlowDocument but i think ASP.net does not have flowDocument right? so what is the alternative way that able to do similar things in asp.net. I'm trying to print document that contain image and text as picture attached below. Thank you so much in advance =D
example picture.
In ASP.Net and any web platform, you don't print anything at all. The browser does. This is a security feature (meaning you won't be able to easily bypass it) intended to prevent rogue or compromised web sites from littering your printer with the kind of junk corporate fax machines used to collect.
All you do is render a page to the browser that has the content you want, and the user will print via the browser's print options.
I'm writing a document view and I'd like to use the capabilities of the WebBrowser control for some file formats (pdf, e-mail).
Now I have the problem, that for every file format that is unknown to the WebBrowser control, it offers to download the file.
So the question is: How to find out what file formats (file extensions) can be displayed by the browser, so that I can display a message to the user that the current fileformat is not supported for displaying instead of getting a "Do you want to download" dialog box.
If I was you I wouldn't use a WebBrowser control for following reasons:
WebBrowser is just a wrapper around IE engine. It uses old version of IE by default, so it can have troubles displaying correctly HTML documents with basic CSS styling. It can be forced to use newer versions of IE or even other engines, but it takes some effort.
WebBrowser control purpose is to display and navigate throught web pages. And navigating is essentially downloading. I believe it's gonna be hard if not impossible to prevent WebBrowser from downloading files. I believe one way you can do it is by modifying html files like this: Remove hyperlink but keep text? Also you would probably want to prevent context menu from openning.
WebBrowser control is capable of displaying PDF as described here Displaying a PDF in a WPF Application Not Working - WebBrowser or Adobe Control But I have no idea how would you prevent following the links placed in pdf
Instead of using WebBrowser I suggest you to use one of many royalty-free PDF viewing controls and convert your html documents to PDF. I believe suggested approach will take you less time and will be more robust
In ASP .NET is there a way to create a winform (or something of the sort) as a pdf viewer rather than using the browser?
I need to restrict print, url to pdf and right click to save as image or anything else. If I can do this through the browser, where can I find some sample code?
I understand there are hacks to get that PDF downloaded and PRINT SCREEN is another option as well as any image capture program. This is in a INTRANET site so these things I am aware of and not worried about. We just need to make it difficult for non tech employees.
The PDF's hold important reporting information that we do not want print and leave in there office anymore.
Anyone have sample code to achieve this or any tutorial or any leads to the direction I need to take to achieve this?
FYI, site in 3.5 and Webforms...upgrade to 4 or 4.5 has not been approved yet.
Thanks in advance
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
I want to know how I can view a PDF through a C# .net desktop App. I am trying to create a application to view PDF using visual studio 2008
There is a pdf reader libraries called iText(iTextSharp). But it didn't help me
You can host a ie web browser control in your application and that will allow the user to view a pdf if they have a reader installed.
I can provide an example if you tell me whether you are using WPF or WinForms.
Drag WebControl on to you form
Set the path in code
Done Press F5
I'm not sure what netbeans has to do with anything, but take a look at this question here How to render pdfs using C#
Essentially you need to get a 3rd party PDF viewer or write one yourself. There are quite a few around and would probably take a look at something like PDFViewForNet
iText isn't a PDF viewer.
If you want to read PDF documents in your application there are couple of Open Source PDF Libraries.