I have a functionality where I need to upload a multi-page document. For display purposes, I have to give the user ability to view it page-vise. I have to show no. of pages and then user can navigate back and forth between the pages to view each page.
Any pointers on how this can be accomplished? I am using ASP.Net MVC3 and C# as the language.
Much Thanks!
If by "multi-page document" you mean like a PDF or word doc, then you'll need to embed a 3rd party viewer in your page and have it display. Generally they have the functionality you've mentioned built-in.
Related
I'm trying into my ASP.NET MVC 4 web-app based on C#, to allow the end-user to download a pdf-file, which it will be generated from an HTML+CSS+JQuery coded page. In fact, this page contains HTML text fields which allows end-users to enter data and then to generate statistics will be displayed in the same web-page to deal this I have used highcharts, a jQuery library which displayes statistics based on data inputs.
The problem here, that I have tried to implement Rotativa (doesn't work with ASP.NET MVC 4), ITextSharp, all what they offer is the conversion of a pure HTML file into PDF, and, doesn't take the fact of the jQuery charts.
You can try jsPDF. it is an open-source library for generating PDF documents using nothing but Javascript.
link for JsPDF
I've to create one asp web application page for show .docx file( with exact alignment text,images, table etc) and also table of content(like tree view of that document). I would like to ask, Is there any open source ActiveX control or plugin or something else to achieve the specific task . I already done it in windows form application but now want to do it asp web form . i used dsoframer control in windows application . please make me to achieve that.
Please look into following article,
Link
There is support to render a .docx file as HTML - I can't speak to how accurately it renders in the webpage verse desktop version of Word. Still, there is a tutorial here:
http://blog.maartenballiauw.be/post/2008/01/11/Preview-Word-files-%28docx%29-in-HTML-using-ASPNET-OpenXML-and-LINQ-to-XML.aspx
Quick Question: Is it possible to use .netCharting with MVC by streaming data from a database (using Entity Framework) and generating a PDF (using ABCpdf) by an output stream of the generated chart images/bit-maps? I want to generate the charts on server-side, so I don't think having an HTML page render the charts would be correct.
Interaction: The user should be be able to submit their data from a form, have it stream to the database, and then when an admin logs in, they can view a list of users, and be able to
click a button, which generates the updated chart PDF of the specific user from the DB.
Where I work we use .netCharting and ABCpdf to produce a lot of documents, generally financial documents with embedded charts, so yes, it is certainly possible. We always use html to generate the pages and this is all done on the server side.
We are currently developing a Windows Forms application in VS 2008 C#. This application is for reading long (200 - 300 pages) law documents, and it handles about 30 - 40 docs. The application searches in document text, switches between documents, etc.
Our customer has sent the docs in separate *.rtf files for us to "put it into the application". We decided to convert the rtf files into HTML, using the MS Word's "Save as" function, and then selecting "filtered HTML". In this solution, the application can show the documents in a WebBrowser control.
Our problem is: the Customer wants an additional "Pager view" function, where the user can read the documents like it would be a book. He can see the pages on a virtual paper sheet, and then click next page, previous page, etc. Like in the browser's Print preview dialog.
I have searched the internet for any Pager HTML viewer, but I haven't found anything. Could you suggest any solution or component for showing the HTML pages in pager mode?
In last case, we can hold the original rtf files too for Pager View showing. In this case, is there any solution for view RichText files in pager mode? (We want to avoid it, if it's possible.)
Waiting for your answer:
Peter
I don't know of any components that can display HTML in pages, but a couple possible solutions could be:
edit the HTML documents and manually separate them into linked pages (or hidden divs with javascript to hide/unhide divs for navigating)
convert the RTF docs to XPS format and use WPF's DocumentViewer control - but since your app is WinForms, then you'd probably have to do something like this:
http://www.codeproject.com/KB/dialog/WinFormWPFIntegration.aspx
(though someone commented on that page about a memory-leak :S that's something to keep an eye open for...)
I am trying to implement a feature where i open (suppose in iframe) a PDF file (multiple pages), Highlight a section of the document a get the page number (the one that is displayed in the PDF tool bar).
Eg: if the toolbar display 2/7 which means i am right now in page 2, i need to capture the page number information. Sounds simple but i am not able to get a .dll/function that exposes this property.
Any help would be grateful.Thanks.
I wouldn't think this would be possible, there's no way to control PDFs with JavaScript in the browser, which is what you'd need to do.
This article suggests the same: http://codingforums.com/showthread.php?t=43436.
Content of link:
in short, no, you can't do that.
really don't think JS can read properties of PDFs, since PDFs are viewed in the browser thru a plugin, ie a viewport for another application (for want of a better explanation).
You may be better trying a different route, such as generating the pages as images and implementing your own paging. Depends on your content and requirements, of course. ABCPDF from http://www.websupergoo.com/ is free (with a link-back), not sure if that's any help for you.