MS Word Mailmerge Like Functionality To Allow Export To Word Document From Web Application?
Jul 5, 2010
I have requirement where I need to allow users to upload a Word document with place holders for certain fields which can be found in the database. This will be their template. For example the place holders might be prepended with @@ or something. For example
Dear @@Title @@Lastname
They then can grab a record and hit export to Word document. This will then let them choose the template. They can select the template and then click continue. I will then get the template and replace the @@Title with the title field in the database for the selected record. I am not sure where to start or what components I need to do this.
From my initial investigation it seems that I can do this with the new open XML standard for Office 2007. So perhaps I should read in the template and save all the contents to a db table somewhere. Then when the use wants to export I get the contents again and then do a search and replace for the @@ placeholders and link them properly. Then save the document to the output stream again which will then bring up the save dialog on their browser.
I am using ASP.Net MVC and am in a hosted environment. I was also maybe contemplating dynamically creating a new View type and dynamically creating new views when the user uploads a template. Not sure that this approach will work though.
View 2 Replies
Similar Messages:
Dec 5, 2010
exporting an asp.net page to a word (rtf) format. It seems really simple but somehow I cannot seem to complete it. I do NOT need to download it, i just need to convert it at the back end without the user knowing it. Is it possible without using third party tools?
View 1 Replies
Aug 17, 2010
I have an html editor and I would like to import a word document to this editor. Is there a way to do this?
say the user click import button and select the word dument and have it import all content including pictures from the word doc and paste it into the editor.
View 4 Replies
Apr 15, 2010
any component or library (preferably open source) that would allow me to convert Word 2007 documents to Word 2003 with ASP.NET?
View 3 Replies
Feb 25, 2016
I have QuestionTable.
ID Question Answer1 Answer2 Answer3 Answer4
But I want import from MS Word into table. I have question like this:
Question: @1.The capital of India.
Answer:$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
@2.The capital of Tajikistan.
$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
@3.The capital of Afganistan.
$A) Dushanbe;$B) Moscow;$C) Delhi;$D) Kabul;
Output result:
ID Question Answer1 Answer2 Answer3 Answer4
1 1.The capital of India. A) Dushanbe; B) Moscow; C) Delhi; D) Kabul;
View 1 Replies
Sep 20, 2015
how can I download complete webpage in word document.
View 1 Replies
Jan 11, 2011
I have a word document which opens in a web browser using ASP.NET 2.0 this is the code:
[Code]....
THIS WORKS, PROMPTING THE USER WITH "OPEN" "SAVE" "CANCEL" OR SOME USERS WITH "SAVE" "CANCEL" DEPENDING ON USER INTERNET SECURITY SETTING. BUT FOR SECURITY ISSUES, MY BOSS WANT THIS WORD DOCUMENT TO BE OPENED IN WORD PROGRAM. (MICROSOFT WORD 93,97 ETC) IS THIS POSSIBLE....? OFCOURSE SAVING THE FILE IS OKAY, JUST OPENING THE DOCUMENT SHOULD BE NOT BROWSER.
View 3 Replies
Mar 6, 2014
I would like to save input values in the session then convert the grid to word. Here is the example:
View 1 Replies
Mar 3, 2011
I would like to know about commands of : How can I set an index to a single word on my word-document, by some asp commands.(Word-basic ...)Also, how to merge two files to a single word file (rtf).
View 1 Replies
Mar 25, 2011
I want export gridview data to existing word doc. The word doc is avaliable in my pc.
Is it possible to export data?
View 4 Replies
Oct 19, 2010
I have two list box in which i have name of files. Once i click Copy button the files are copied from source location which are in one path to destination location. After that i am clearing the listbox. Before moving i am checking some validations like filename, file content.
If all validations are sucsess the files will be moved.
If there are any failure in validation for some files, only files which are validated successfully are copied, the error files are not copied. Here i need to popup a word document which will contain the file names, validation failure message.
This is fine i am getting it.
After poping up the word doc i need to do Response.Flush();
So due to this it is not clearing the Listbox. How can i clear the listbox
View 2 Replies
Jan 22, 2010
I am using Interop dll Microsoft.office.interop.word to export some data from my asp.net application to MS Word. Now the machine on which the application is deployed does not have MS Office installed. Which leads to error in functionality.
View 1 Replies
May 9, 2012
I want when user upload a doc file it convert into pdf. How can i do this. I read that itextsharp convert it.
View 1 Replies
Jun 10, 2010
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?
View 7 Replies
Mar 18, 2010
protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
{
//string path = Server.MapPath("Help File editorial.doc");
string path = Server.MapPath("check.doc"); [code]...
What is wrong in the above code When i clk on imgbutton nothing happens. just page get refresed. I hv tried octet-stream as well as .doc
View 9 Replies
Jul 8, 2010
I have a list box that contains a collection of documents that a user has uploaded. I would like to make some sort of preview window on the page that allows the user to see the document without having to download it and open up word or reader.
View 2 Replies
Sep 14, 2010
I want to read a word document in asp.net and i need to convert the document words into bytes .So how to do that ?
View 2 Replies
Jun 9, 2010
I have to generate reports in both ms-word and pdf format....i have it working in pdf w/ iTextSharp. With iTextSharp, I create a new FileStreamResult for the MVC Action to return .How can I create a word document and have the user download it when an action is invoked?
[Code]....
View 6 Replies
Dec 14, 2010
is there a way to extract these details from a word document? because there are many resume formats,finding the name itself would be a huge problem.
View 4 Replies
Apr 8, 2010
I have a file up-loader by which i upload the .doc file in a folder on server.]
I want to display the whole word document content on a label as it is in .doc file in C#.
View 2 Replies
Aug 19, 2010
User downloads a document from a specified site, saves to the local disk and fills in confidential details. When other users logs on to this computer and if they try to access the file, the document should not be accessible. Also consider that the document can be saved to a common server too, in which case, no one else other than the person who downloaded and filled the document should be able to open the document.
some options to protect this document.
View 6 Replies
Sep 21, 2010
How can I convert HTML to Word Document in ASP.NET?
View 2 Replies
Mar 23, 2010
How can I store a word document using an upload control in sql server? Also is there a better way to store a word document without using an upload control
View 7 Replies
Aug 10, 2010
How To Store Word Document in Sql Server
View 3 Replies
Dec 20, 2010
how do i import whatever is in a word document(including bullets and tables and images) into sql server
View 2 Replies