C# - Printing The Documents Based On Document Type?
Nov 9, 2010
i have .doc,.xls,.PPt,.rtf files in the server. How do i implement the print functionality for the user. I have the list of file names and file type. some code samples to print the documents based on the file type. I am using c# 4.0 ASP.NET
I am trying to find a method to print documents which are in the following formats:
.doc .docx .pdf .rtf
I have a GridView with a series of CheckBoxes like so:
[URL]
You can see the Print checkBoxes, i have a button at the bottom of the page and when this is clicked i need to check to see which rows are checked and the print the "CV" documents. The CV documents are in the formats i have described above.
In my asp.net c# page, I want to print microsoft word document from c# code, when I create the print button, it will automatically print one selected document and print in the printer.
Is it a good idea to create a document managament system that stores all kinds of documents inside sql server database. This will have infrastructure to accomodate all kinds of applicartions..
I was trying to install CMS for my ASP.NET (Open source Umbraco). After the installation process, when I try to run the website, I get this error: Could not create type 'umbraco.webservices.documents.documentService'. E:UsersSarinDocumentsVisual Studio 2010WebSitesWebSite20umbracowebservicesapiDocumentService.asmx
Here's the line from default.aspx which is showing this error.
I'm halfway through coding a basic multi-tenant SaaS ECM solution.Each client has it's own instance of the database / datastore, but the .Net app is single instance.The documents are pretty much read only (i.e. an image archive of tiffs or PDFs)I've used MSSQL so far,but then started thinking this might be viable in a NoSQL DB (e.g. MongoDB, CouchDB).The basic premise is that it stores documents, each with their own particular indexes. Each tenant can have multiple document types.
e.g. One tenant might have an invoice type,which has Customer ID, Invoice Number and Invoice Date.Another tenant might have an application form, which has Member Number, Application Number, Member Name, and Application Date.So far I've used the old method which Sharepoint (used?) to use, and created a document table which has int_field_1, int_field_2, date_field_1, date_field_2, etc.Then, I've got a "mapping" table which stores the customer specific index name,and the database field that will map to.I've avoided the key-value pair model in the DB due to volume of documents.
This way, we can support multiple document types in the one table,and get reasonably high performance out of it,and allow for custom document type searches (i.e. user selects a document type, then they're presented with a list of search fields).
However,a NoSQL DB might make this a lot simpler,as I don't need to worry about denormalizing the document.However,I've just got concerns about the rest of the data around a document.We store an "action history" against the document.This tracks views,whether someone emails the document from within the system,and other "future" functionality (e.g. faxing).
We have control over the document load process,so we can manipulate the data however it needs to be to get it in the document store (e.g. assign unique IDs). Users will not be adding in their own documents,so we shouldn't need to worry about ACID compliance,as the documents are relatively static.
So,my questions I guess :Is a NoSQL DB a good fit Is MongoDB the best for Asp.Net (I saw Raven and Velocity,but they're still kinda beta)Can I store a key for each document,and then store the action history in a MSSQL DB with this key?I don't need to do joins,it would be if a person clicks "View History" against a document. How would performance compare between the two (NoSQL DB vs denormalized "document" table)Volumes would be up to 200,000 new documents per month for a single tenant. My current scaling plan with the SQL DB involves moving the SQL DB into a cluster when certain thresholds are reached,and then reviewing partitioning and indexing structures.
I want to create a function which would have two parameters
public **XYZ** GetOputput(string strToConvert, **ABC**)
What I want from this function, that I will send a string to this function and the datatype in which I want to convert this string [Ex: Int32,Int64, datetime etc..] and the return will be the same as the datatype I have sent as the input parameter.
I want to have something like this in my function:
I have some javascript files for each browser version and for different browsers. I want to include this files in script tag of script manager. Is it will detect these files and load based on browser version? Is there is best way to handle this scenario declaratively in markup insted of codebehind?If not declaratively how in code behind?
I'm developing an application in which user can decide if he wants to print something now or at some other time. So the idea is for user to click print and say now or determine the time when the document will be printed (without any further user inputs). I don't know what is the best way in asp.net mvc to this. Is there any way to print html in this way or do i have to convert that html in some other format and save it in database?
I have xml document and wanting to pass it through wcf restfull service, i am able to do that by using string format i mean i can pass the xml as string param in the restful service and it worked but now my xml document becomes huge so if i pass it as string then it gives URI long error. any way i can pass the huge xml document through the WCF RESTFul service.
Both methods successfuly launch the PDF document displaying the document path and title in the title bar. For security reasons I'd like to HIDE the document title. Can someone advice how this can be done? (How can a PDF document be launched without showing the actual document's name)
I have table called ROLE with fields (id,name,permission) example values (1001,madhu,hr)
I have another table called LOGIN with fields(id,DOB,password) example values(1001,24101989,madhukumar)
What i want is , if i login using the LOGIN table ,it check the id and permission in the ROLE table , if the permission is 'hr' it enable to access the menu , or if the permission is any other it just print the error message ("no permission")
Note: menu is placed in master page , but login is not in the master page ...
I have LOGIN PANEL for student, and I want to disable it in different page. And only the admin can enable and disable it. I dont know the logic behind here.
I want to convert to Word Document in a PDF document. I do not want to use any third party control. I want to do it on my own. Can somebody tell me how to start with it?
My printing task is different from other web projects.
I will explain the task clearly.
I have 3 DIV Tags in a web page.
When I click Print All button in the web page, i have to store the contents of 3 DIV tags in rich text format file. Then i perform some codings for modifying the contents of 3 DIV Tags. Similarly i have to store the contents of them in same rich text file (appending to a file after page break) and so on.
I'm working with an asp.net application that produces large PDF documents from HTML. The content is perhaps complex (detailed grid type listings, css styled, running to 40+ pages) compared to typical usage. None of the libraries we've tried are performing adequately. Typically a 40 page document is taking upwards of a minute to render on a powerful multi-core machine.
We are able to decouple the generation from the web application and also pre-generate documents in some cases. Still, the frequency with which content changes requires a faster solution.
So, does anyone have experience of a PDF generation component that can output a content heavy 40 page document in seconds rather than minutes? Or are our expectations unrealistic?
NB: I'd rather not "out" the poorly performing components here as we are seeking support from vendors to make improvements. I've reviewed previously questions posted on StackOverflow and none appear to deal with this type or size of document.