Web Forms :: Word Mail Merge On A Web Page Using C# .Net

Feb 17, 2010

I have all the data in excel/or some of database which has forexample to and from email addresses,names etc. I need to Mail Merge data into Word Document and this word document should be editable for any additions or modifications. Need to have the ability to type in the text or attach an attachment. should be filled with all the To,CC,subject fields from database/excel sheet and send an email. I need all this on a web page so i can distribute this webpage url to the user and he can get all this.

Is there any way to do this and if some one provide me some links to work on this or send me some code for this. I really donot have any idea and need to start from starch on how to accomplish this task.

View 14 Replies


Similar Messages:

C# - Word Mail Merge From Web Application

Aug 12, 2010

What is the best way to do this. I dont have access to the database since it is firewalled. It needs to be done throught the web interface. I can generate a csv file and plug it into the word document, but it seems cumbersome to me. Is there any better way to do this?

View 1 Replies

C# - Word Mail Merge For Server

Sep 9, 2010

Need to do a mail merge for ASP.NET application. Considered just programatically using word directly but this has liscening implications and is not recommended [URL] So was looking into openXML / Word Automation Services. But not sure if can easily achieve a mail merge via this?

View 1 Replies

VS 2008 - Create Mail Merge Doc Using MS Word 2003/2007?

Apr 13, 2010

I need to create some mail merge documents and was wondering if anyone knew the best way of doing this from asp.net. Currently I have set up .dot template files with bookmarks and then use COM to open these files pass the data and save. I can then stream the file to the users desktop. The issue i have is that to get this working when i release it is by installing Wrord on the server which I would prefer not to do.

way of passing data to word docs and then opening them to the user. The reason why i need to use word, is that the user needs to be able to modify the doc.

View 7 Replies

Architecture :: Make Application Work With Ms Word Mail Merge?

Nov 9, 2010

I am planning to create HR Management System using asp.net & sql server 2005. In this application we need to manage different kinds of Employee Documents like Offer letter,Salary certificate etc.. Now,What we need is we will store templates for these documents(ms word,excel) in the application and needs to genereate these documets corresponding to the selected employee like mail merge.

View 3 Replies

Web Forms :: Mail Merge With ITextSharp Library?

Sep 27, 2010

i'm looking for a way to implement a simple ail merge with iTextSharp library.

I have data stored in database (addresses) and a pdf template.

I need to create a single pdf file where each page contains one address.

How can i do this?

View 1 Replies

Web Forms :: Implement Mail Merge In Project Using Email Built In Function

Sep 22, 2012

I want to implemet mail merge with my on going project, I know well how send news letters to authorized clients, but need to do it with mail merge like the email from this forum.

View 1 Replies

C# - String Replacements For Word Merge

Mar 31, 2011

using asp.net 4 we do a lot of Word merges at work. rather than using the complicated conditional statements of Word i want to embed my own syntax. something like:

Dear Mr. { select lastname from users where userid = 7 },
Your invoice for this quarter is: ${ select amount from invoices where userid = 7 }.......

ideally, i'd like this to get turned into: string.Format("Dear Mr. {0}, Your invoice for this quarter is: ${1}", sqlEval[0], sqlEval[1]);

View 4 Replies

Merge Word Documents (Office Interop & .NET) - Keep Formatting

Mar 25, 2010

I'm having some difficulty merging multiple word documents together using Microsoft Office Interop Assemblies (Office 2007) and ASP.NET 3.5. I'm able to merge the documents, but some of my formatting is missing (namely the fonts and images). My current merge code is shown below.

private void CombineDocuments() {
object wdPageBreak = 7;
object wdStory = 6;
object oMissing = System.Reflection.Missing.Value;
object oFalse = false;
object oTrue = true;
string fileDirectory = @"C:documents";
Microsoft.Office.Interop.Word.Application WordApp = new Microsoft.Office.Interop.Word.Application();
Microsoft.Office.Interop.Word.Document wDoc = WordApp.Documents.Add(ref oMissing, ref oMissing, ref oMissing, ref oMissing);
string[] wordFiles = Directory.GetFiles(fileDirectory, "*.doc");
for (int i = 0; i < wordFiles.Length; i++) {
string file = wordFiles[i];
wDoc.Application.Selection.Range.InsertFile(file, ref oMissing, ref oMissing, ref oMissing, ref oFalse);
wDoc.Application.Selection.Range.InsertBreak(ref wdPageBreak);
wDoc.Application.Selection.EndKey(ref wdStory, ref oMissing);
}
string combineDocName = Path.Combine(fileDirectory, "Merged Document.doc");
if (File.Exists(combineDocName))
File.Delete(combineDocName);
object combineDocNameObj = combineDocName;
wDoc.SaveAs(ref combineDocNameObj, ref m_WordDocumentType, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing, ref oMissing);
}

I don't care necessarily how this is accomplished. It could output via PDF if it had to. I just want the formatting to carry over.

View 1 Replies

Web Forms :: Merge HTML In An Existing Asp Page?

Nov 30, 2010

I have a method in a separate class which returns a string. This string actually has a HTML in it (Head, body, etc). I am retreiving this string in one of the method in my code behind and I want this html to merge into the current existing HTML and display the contents on the returned string (HTML) in the current page creating a new div or some other good method. If some one has any idea related to this, please help. Ask for any further information in case you need to get a clear understanding.

View 13 Replies

Web Forms :: Create Page With Similar Layout As Yahoo Mail Inbox Page?

Sep 16, 2010

I want to create a web page with a table on top and a scrollable panel. Similar layout to yahoo mail inbox page (list of inbox messages on top and the panel displaying details). Further more, the table displays general information list and the panel displays a list of detail records. when a user clicks a table row, the panel is going to jump to the specific detail row, similar to html anchors. Do you know how to implement this?

View 3 Replies

Web Forms :: Embed Image In Mail Body While Sending Mail In C#.net Uisng Exchange2007_SP1

Apr 9, 2010

I am uisng ExchangeVersion.Exchange2007_SP1 EWS to send mail through my c#.net application. I want to embed image in mail body so tht user can see body message along with image in its inbox mail .currently I am uisng image tag to show image but in the email body its just showing image url instead of image.

View 9 Replies

Web Forms :: Smtp Mail Settings Error The Specified String Is Not In The Form Required For An E-mail Address

May 26, 2010

i've been googling this for two days so here it both the error and the webconfig code.i directed the aspnet 2.0 exe to the application name/database

the problem is when the user tries signing up this error comes up, but the kicker is the user is place into the database ?The specified string is not in the form required for an e-mail address.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.FormatException: The specified string is not in the form required for an e-mail address.

Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace: [FormatException: The specified string is not in the form required for an e-mail address.]
System.Net.Mime.MailBnfHelper.ReadMailAddress(String data, Int32& offset, String& displayName) +1128747
System.Net.Mail.MailAddress.ParseValue(String address) +240 [code]...

View 1 Replies

Web Forms :: System.Net.Mail.SmtpException: Failure Sending Mail

Sep 17, 2010

'System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: net_io_connectionclosed. at System.Net.Mail.SmtpReplyReaderFactory.ProcessRead(Byte[] buffer, Int32 offset, Int32 read, Boolean readLine) at............................

getting the above error when sending mail from asp.net 2.0

View 16 Replies

Forms Data Controls :: Export Gridview To Word Doc Using Existing Word Doc?

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

Web Forms :: Open Word Document In Word Program Not In Browser

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

Web Forms :: Open A Word Doc File In MS Word From Website?

Aug 26, 2010

My requirement is : I have to open a word document in Microsoft word from my web application and the word document is stored in the server location.

In javascript i wrote a code to open the word document like below.
var dsWordApp = new ActiveXObject("Word.Application");
var WordDoc = dsWordApp.Documents.Open(FileName)

Using above script i am able to open the local word doc files but i am unable to open the server side word doc file.

how to open a server side word doc fie in MSword.

View 1 Replies

Web Forms :: How To Devide A Page Word / PDF

Jan 11, 2010

I would like a page that display an MS Word file in one half , and its corresponding PDF file in the other half .. How I can do it

View 2 Replies

Web Forms :: Getting Error After Sending E-Mail And A Page Can Have Only One Server Form Tag?

Oct 1, 2010

I have a function in my asp.net page and whenever it is called it is giving me an error

"A page can have only one server Form tag"It doesn't happen when the page is loaded.only after a button is clicked.

The code is:

void send(object sender, EventArgs e){

StringBuilder sb=new StringBuilder();

StringWriter sw= new StringWriter(sb);

[code]...

View 7 Replies

Web Forms :: Send Mail Redirect To Another Page Without Wait For Result?

May 17, 2012

on click event need to send email and Redirect to another Page without wait for resultĀ of send mail (asp.net) using threading. Is there another way to solve this.

View 1 Replies

Web Forms :: Retrieving Word Doc One Page At A Time Using Open Xml?

Jan 31, 2011

What i need to do is to retrieve only one page of word document at a time and provide user with next and previous buttons to move to forward and backwards to view other pages of document, just like pagging in gird view of other controls.

View 2 Replies

Web Forms :: Insert Text On The Next Page Word Document?

May 19, 2010

How to insert new page to word ?

[Code]....

I want to, text "Second Page" will be on the next page. How can I insert text on the next page word document?

View 2 Replies

Forms Data Controls :: MS Word View In HTML Page?

Apr 13, 2010

I have stored some word file in a file on the server.

Now i wish after the click on the link the document should be viewed on the same page.

View 2 Replies

Web Forms :: How To Export Grid View To Word (page Wise)

Jul 31, 2010

How to export Grid view to word but one condition .....the record is bind to word single record to one page...next record to bind to next page (to word).....

View 3 Replies

Web Forms :: How To Display Word Document File In Page At Run Time

Oct 29, 2012

I want to develop a web page & i want to show doc file on the aspx page in same format on button click.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved