Convert From Office Docs / PDFS To HTML
Jul 27, 2010
I am currently working on a project where I need to secure access to downloadable files. The solution I want to implement is to have two buttons next to each document. One that says Editable and the other read-only (depending on the users permission they will see one of these or both). The editable will work normally with the browser dialogue opening to say open / save the document. That is the easy part. The read-only button needs to open the document without caching anything (in temporary internet files) on the client's machine for security reasons or give the ability to save it to their local machine.
The best Idea I have for this is to convert the document to HTML on the fly and then redirect the user to this page. We can then turn caching off on the site so the HTML isn't cached (I know they can then right-click and save the HTML or copy the text,etc.. but that is deemed acceptable). Does anyone have an alternative solution than this (or have an easy way this can be achieved)? I don't want to install Office on the web server or pay heavily for a third-party tool like Aspose.
View 2 Replies
Similar Messages:
Feb 3, 2010
I'm hoping this is an easy one...I'm using Microsoft.Office.Interop.Word to convert uploaded word documents into previewable html files. I haven't implemented it fully, but I've played around with it enough that I think I have a plan that will work... My question revolves around
[Code]....
I'm not in love with the idea of opening word and closing it everytime there's an upload (which I hope is a lot of the time) I'd like to make this a shared object that loads at application start. I have 2 questions
that go along with this. 1. I imagine that winword could lock up and that would be a problem, right? 2. to save a document I use wordapp.ActiveDocument, this could have an issue as a shared object, right? I think I'm talking myself right out of this...
View 1 Replies
Jun 25, 2010
The purpose is to generate proposal documents that can manually be edited in Word after the fact, but before sending them out to the customers.
Much proposal content would be drawn from existing HTML website content (backing CMS) and also some custom (non-HTML) injection for certain scenarios. Of course the conditional logic could go into server-side ASP.NET to vary the content appropriately.
I'm open to 3rd-party tools if raw manipulation of the Word API is arduous. In fact a good 3rd party tool might be the answer.
View 3 Replies
May 10, 2010
I would like to convert Word document to an Image so i can use iTextSharp to then convert the image to PDF.
View 1 Replies
Dec 9, 2010
My server administrator does not allow me to install Microsoft Office in the server.
I have developed a website which converts XML files to Excel and it is using Microsoft.Office.Interop.Excel.
Is there any way I can run this application without installing Microsoft Office in the server?
View 7 Replies
Mar 9, 2011
I have some data which is HTML format saved in database. Like the chat as follows.
Roy, 2/11/2011:
Sree, 2/11/2011:
But it gets saved in some HTML format in Database as follows.
[code]....
So, Is there any ways that I can show this in Text box as what I need. While debugging the code, when I did HTML Visulaliser, it showed me correct format. How can I achive this in my Textbox control.
View 2 Replies
Jan 19, 2011
I have a textbox which I need to enter html code into (like < strong> or < em> for example).The trouble is this is causing an error writing this back to the database. A potentially dangerous Request.Form value was detected from the client (tbVOther="< strong>testIs there a way around this without turning off the request validation setting?
View 3 Replies
Feb 18, 2011
I am looking for code that linearize PDFs file. that show page-by-page into the user's browser, so the user doesn't have to wait for the whole document to download before starting to view it.
View 1 Replies
Nov 10, 2010
I've been asked to implement a security requirement that we instruct browsers not to cache sensitive data. This is all fine for the ASPX content using the standard instructions:
Response.Expires = -1;
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.Cache.SetNoStore();
However when I set these headers for PDF downloads, IE8 won't show the PDF (haven't tried other IE versions yet, kinda moot, I need it working on all of them, even IEfreaking6). Seems to work in firefox 4 beta, but I haven't double checked that it's definitely not caching it. Here is the abridged version of the code I'm using to serve the PDFs:
Response.Clear();
Response.ClearHeaders();
Response.ClearContent();
Response.Buffer = true;
//This stops the PDFs from being viewed :(
//Response.Expires = -1;
//Response.Cache.SetCacheability(HttpCacheability.NoCache);
//Response.Cache.SetNoStore();
Response.ContentType = mime;
Response.AddHeader("Content-Disposition", disposition);
Response.BinaryWrite(file);
Response.End();
Where in the case of PDFs the mime type is set to: private const string mimeTypePDF = "application/pdf"; The disposition is set to: var disposition = String.Format("{0};filename="{1}"", SendInline ? "inline" : "attachment", Path.GetFileName(filename));
I'm going to play-around a bit more, maybe forcing them to download as mimetype "application/octet-stream" might work, but that would stop the nice open PDF's in a new browser window from working. Has anyone had any success with preventing IE from caching PDFs from the server side and successfully displaying them?
Just to give a clear example about what happens. In one scenario user's can select a bunch of reports from a list, these are compiled into a PDF and the PDF is shown in a new browser window. With the caching enabled the browser window opens, but remains resolutely blank.
View 2 Replies
Oct 19, 2010
I am creating a web app to basically allow the user to select multiple files, specifically pdfs that have already been created on a network path, and print whichever ones they want. Can someone point me to the best way to accomplish this? I have done a lot of searching, with no good results so far.
View 3 Replies
Nov 30, 2010
I have this HttpHandler which works great ONLY for PDF files:
=================================================================
public void ProcessRequest(HttpContext context)
{
HttpResponse response = HttpContext.Current.Response;
[code]...
View 5 Replies
Sep 3, 2010
I have multiple PDFs coming from a report generator and I want to merge them to a single document. The merging process must run in a web site or WCF web service environment (Framework 4.0, IIS 7.5). Is there a component, open source or commercial, to accomplish this?In my process I get the PDFs as streams. If I have the choice, I would prefer a merging method, working directly on these streams - without file representations.
View 2 Replies
Apr 15, 2010
I have been presented with a problem which requires me to print PDF files from a server as part of an ASP.NET web service.
The problem is further complicated by the fact that the PDF files I have to print can ONLY be printed using Adobe Reader (they were created using Adobe LiveCycle and have some strange protection in them).
This piece of code seems to do the trick in the Visual Studio development web server, but doesn't do anything when the site's running in IIS. I'm assuming this is probably some sort of permissions issue!?
Dim starter As ProcessStartInfo
Dim Prc As Process
' Pass File Path And Arguments
starter = New ProcessStartInfo("c:program files...AcroRd32.exe", "/t ""test.pdf"" ""Printer""")
starter.CreateNoWindow = True
starter.RedirectStandardOutput = True
starter.UseShellExecute = False
' Start Adobe Process
Prc = New Process()
Prc.StartInfo = starter
Prc.Start()
View 1 Replies
Mar 9, 2010
I am interested in learning how to set up a secure report server with which I can publish individualized reports to my constituents. I know that banks and brokerage firms can do this, but I am not sure how it is done. I want to publish documents for an academic institution (grades, bills, transcripts, etc). I know some ASP.net and I am pretty fleuent in Crystal Reports. I am considering using a product like pdf-explode to disseminate reports via email, but I would really like to learn how to set up a secure site for my constituents and have them view the reports there.
View 1 Replies
Mar 1, 2011
How can i use the google docs say like wen i display a excel sheet when the user wants to view that particular sheet or document It should open in google docs how can i do that?
View 2 Replies
Jan 15, 2010
I have a web-report listing links to pdf documents. The pdf docs shows up in a new page based on frames in frames. I do not have control on the page showing pdfs.
In the web-report I want to let the user select multiple docs and then send them to print on the client.
View 1 Replies
Apr 4, 2011
I have an asp.net app that uses a SQL Server 2005 database to store word documents. One of the application requirements is that when a user clicks a button, the system retrieves some number of word documents from the db, zips them up in memory and allows the user to save the zip file to disk.
Is there a zip library that provides the ability to zip up files in memory? The few that I've seen read from the file system.
View 3 Replies
Oct 13, 2010
I have webpages that contain links to word documents and pdf files. For each link I want to display the file size and an icon showing what the file type is.
I'm thinking the best way to do this would be with CSS? Can anybody give me an example of how to do this?
View 1 Replies
Feb 18, 2010
i have to convet a pdf file to html fromat and send it as an email by writing asp.net C# code
View 2 Replies
May 11, 2010
how to convert PDF file to xml file or html file?
View 6 Replies
Feb 19, 2010
i have to read pdf and create html document... for uploaded cv in my site... i can not use any shareware.please can anybody suggest me the best solution for converting pdf to html...or read pdf content using C#site is developed in C#, asp.net 3.5
View 4 Replies
Jun 21, 2010
I have data stored in the database with HTML format, and I want to get the value of this html content with MyReader.getString() after getting the html code I must do the conversion to PDF Format.
View 4 Replies
Sep 12, 2010
i want to convert html to pdf on the fly without creating file on sever and the pdf file appears to user to be open dirct how can i do it?
View 16 Replies
Oct 13, 2010
I'm trying to open Word & Excel docs in a new browser window. The windows opens and then closes straight away. I think I may need browser plugins. Can someone provide some advice on how I can achieve this?
Here's my code:
From calling page:
[Code]....
From new page:
[Code]....
View 1 Replies
Jun 7, 2010
I'm currently writing a web service using WCF in VB.NET.Previous web services I wrote used ASMX but I wanted to learn WCF and so far it's going well. I actually prefer the way WCF does things.One thing I miss however is the way that ASMX used to generate example SOAP requests and responses. It was like getting documentation for free.Is there anyway to auto generate SOAP documentation for WCF?
View 1 Replies