.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

mail merge with iTextSharp library?

Posted By:      Posted Date: September 27, 2010    Points: 0   Category :ASP.Net


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 Complete Post

More Related Resource Links

Mail Merge




I am after creating a mail merge documents from datasource and .dot template file on server side. Can you give me an idea how i will achive this?


Thanks in advance.



Syed Hussain



does SPD support filtering of the mail title/body we send to a list/library?

for example, if we send a mail with the title of "%hostname% %ipaddress%" to a list. can SPD WF filter the title and get %hostname% to a new variable? the reason to ask this is i want to send a well-formated mail to sharepoint and the automatical WF can recognize the change of the list items and update the relevant columns by the filtered content from mail title or body. thanks!

Problem with incoming mail to SharePoint Library - what is wrong with this?

I configured my incoming mail to a SharePoint 2010 library according to these instructions. http://intellects.in/2010/04/04/configuring-sharepoint-2010-document-libraries-with-exchange-server-2010-to-receive-mails-from-internalexternal-world/ I'm able to receive mail at the Exchange mailbox set up for the document library, but am unable to receive the document in the library itself.  I'm thinking it's because I have a problem with my naming - but I'm not sure how to solve it: I have a SharePoint box and an Exchange box. I've configured the SMTP virtual server with default domain of  server.domain.com .  I've also assigned it an alias of domain2.net I've configured incoming email in SharePoint Central Administration to use the address of mylist@domain2.net so that users can have a friendly url for sending documents to lists and libraries. I've created an Attended Domain in Exchange 2010 and set up an email address policy that speicifes all mailboxes receive an domain2.net address.  I have an MX record for the domain2.net address with a DNS server pointing to the Exchange box. I've created an SMTP Send Connector that points to the FQDN server.domain.com of my virtual server on my SharePoint box. With that connector, I've chosen to route mail through the same FQDN of server.domain.com , that of my SharePoint/IIS SMTP Virtual Server box. When I confi

Event handler that will take an e-mail sent to a doc library and save it as an .MSG file within the

Hi All, I have a requirement to create an event handler that will take an e-mail sent to a doc library and save it as an .MSG file within the library? Any help/inputs on getting this done is much appreciated.  Hanif

Unable to filter the "E-mail To" field in email enabled document library

Hi, We have setup a few email enabled docuement libraries to store emails relating to project work. Is there a way to make the "E-mail To" field in the library be filtered? It is greyed out and doesnt give you the option. The "E-mail From" and "E-mail Subject" are able to have a filter applied to them but for some reason the "E-mail To" field wont let you filter the content. The probelm is that there are over 500 files in the library and the easiest way to find messages is to be able ot filter this column in the library if it is at all possible.

how to merge contents of a form library and picture library into a report (word or pdf) document

Hi all           I want to generate a report  containing data from a form library and pictures from a picture library. I am able to generate ms word report from data filled in form library using http://www.bizsupportonline.net/infopath2007/convert-infopath-form-into-word-2007-document-xslt-c-sharp.htm . . But now actually i need to merge images from a picture library into that word  document . thnxs 

Mail Merge


Hi Friends,

I Have Created Mail Merge By connecting With MySql Database ...When it executed an 6 record repeated as for ex:Ramesh is First Name when button click it will created for 6 times Ramesh Ramesh Ramesh Ramesh Ramesh Ramesh how to solve i will give you coding please correct and post as soon as possible..

sing System;

using System.Data;

using System.Configuration;

using System.Collections;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.WebControls;

Microsoft Word Mail Merge Problem


I wrote code to create label from Microsoft Word Mail Merge using Visual Studio 2008 ASP.NET C#. This is my code:

public void CreateLabel(string strCSVPath, string strTemplatePath)
            Object fileName = strTemplatePath;

            Object missing = System.Reflection.Missing.Value;
            Object oEmpty = "";
            Object oFalse = false;
            Object oTrue = true;
            Object oAutoFormat = word.WdOpenFormat.wdOpenFormatAuto;

            word.Application wApp = new word.Application();
            word.Document wDoc = wApp.Documents.Open(ref fileName,
                ref missing, ref missing, ref missing, ref missing, ref missing,
                ref missing, ref missing, ref missing, ref missing, ref missing,
                ref missing, ref missing, ref missing, ref missing, ref missing);
            word.MailMerge wMM = wDoc.MailMerge;

            wMM.OpenDataSource(strCSVPath, ref oAutoFormat, ref oTrue, ref oFalse, ref oTrue,
                                ref oFalse, ref oEmpty, ref oEmpty, ref oFalse, ref oEmpty, ref oEmpty,
                                ref oEmpty, ref oEmpty, ref oEmpty, ref missing, ref missing);

            wMM.DataSource.QueryString = "SELECT * FROM " + strCSVPath;

            wMM.Destination = word.WdMailMergeDestination.wdSendToNewDocument;


Nice way to ask user to choose a document and then list of recipients for a mail merge?


I'm building what could be described as a mail merger. A user chooses an email template, chooses a list of recipients, and the application performs a mail merge.

I could attach the workflow to contact lists, in which case I only need to ask the user for the email template to use.
I could attach the workflow to document lists, in which case I only need to ask the user for the recipients to sent to.

I decided though that I'd bring them to a starting page and let them choose both. But I've a horrid and barren looking aspx form.
Is there any nice way of letting them browse for the documents and contacts? At present I'm using a couple of dropdown lists listing all documents on the site, and all contact lists on the site, but it's a bit butt-ugly :D

I wrote a book :) http://www.amazon.com/Microsoft-Visual-Studio-2008-Programming/dp/0071604081

mail merge online



is there a way to embed any asp.net code into php to produce a letter mail merge which would produce letters in a word document from names and addresses from mysql database?

many thanks 

Mail Enabled Document Library Not receiving email?



We have SP2010 Foundation in our Env.

I am testing mail enabled Documents in SP2010, But I am not able to receive mail in Document Library.

I have configured and verified the setting in Exchange 2007 and SP2010. Everything looks fine.


Mail are hitting the SP2010 Server but not delivered to Mail Enabled folders in SP.


Kindly HELP.........

Changing the E-Mail Subject field in a Document Library


I am trying to use SharePoint Manager 2007 to change the Sealed attribute of the item to False, so that I can edit the E-Mail Subject field of items in an email enable library.  When I select False I get the error: "Operation is not valid due to the current state of the object.". 

Is there another way that I can change this attribute to False?

Mail merge in SSRS reg,.


Hi !

I did see the mail merge layout designing. 

But i need to know the following,

whether is it possible to send the mail directly to the mail id (From Data base) being in the report ?

As in subscription we need to add the users name and id to which we need to send the mail id, which may be hard coded.

But in my case if i wanna send the payment reminder letter to the customers, i 'll design a report holding informations and wanna send to the customer mail id taken from the db..

is that possible in SSRS ? How ?

Thanks !


Merge Upload form and editform in Document library upload document



I have a document library.  When the user click on the upload, I want to display an entry form that have: Name, description, keywords and file with the browse button. All those fields should be on the same page. 

The problem is that by default when the user click on upload button, it get redirected to _layouts/Upload.aspx which ask the user to browse for the document, when he click ok, it is redirected to Forms/EditForm.aspx to provide the Name, description and keywords field. 

My client do not want to have two pages, he just want to enter and upload the file all in one page.

Any ideas how can I accomplish this?

Thank you,



How to use iTextSharp .Net Library to insert text to PDF Templates

The article How to use iTextSharp .Net Library to insert text to PDF Templates was added by codenickel on Sunday, January 23, 2011.

You can use Adobe Acrobat professional to create a PDF form template.Put a TextFeild and give a name for that as text1.Then set the formattings.In the c# code follow these stepsusing System;using System.Collections;using System.Configuration;using System

Upload a File to a SharePoint Document Library - Part I

The following helper class demonstrates a few techniques that allow documents to be uploaded to a SharePoint document library programmatically without using the API or a custom web service. You don't need to specify a document library name, and it will create any folders specified in the URL as required. File meta data will be updated if any properties are passed.

A flexible charting library for .NET

ZedGraph is a class library, Windows Forms UserControl, and ASP web-accessible control for creating 2D line, bar, and pie graphs of arbitrary datasets. The classes provide a high degree of flexibility - almost every aspect of the graph can be user-modified. At the same time, usage of the classes is kept simple by providing default values for all of the graph attributes. The classes include code for choosing appropriate scale ranges and step sizes based on the range of data values being plotted. Moreover, ZedGraph is compatible with .NET 2.0, and VS .NET 2005.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend