Welcome to Dream.In.Code
Getting C++ Help is Easy!

Join 136,282 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 2,370 people online right now. Registration is fast and FREE... Join Now!




mailmerge

 
Reply to this topicStart new topic

mailmerge, how can we impliment mailmerge concept using C Files

rajavc
3 Aug, 2008 - 11:17 AM
Post #1

New D.I.C Head
*

Joined: 3 Aug, 2008
Posts: 1

hi sir,
any body can help me
i want to imliment the mailmerge concept using Files in C programing

Thanks in advance

User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Mailmerge
3 Aug, 2008 - 12:26 PM
Post #2

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
Wow, yet another person wants us to do their homework. Please read the forum rules!

"Mail Merge" is basically about content management. We want to take a form letter and add in some variables so that they letter can be used over and over to various "recipients". So we want to change the address at the top of the letter, the name of the person the letter is headed to, maybe even add some specific strings into the text of the document. Basically we are talking about the electronic equivalent of:
QUOTE
So and So Associates Inc.
10101 Binary Drive,
Somewhere, USA.

__________________
__________________
__________________


________


Dear ___________;

Thank you very much for your recent correspondence concerning __________, however we regret to inform you that we really don't care.

very insincerely,

Vice President of Automated Affairs,
_____________
_____________



Generally this is done by creating a template form where there are markers indicating where replacements are to be made (much like creating a Mad Lib program). There are lots of ways to do this. Recently I did a program in Java that would work like this. I pass in a string containing template text and a list of name-value pairs that represent substitutions.

Template text would look like this:
QUOTE
So and So Associates Inc.
10101 Binary Drive,
Somewhere, USA.

${Recipient.address}

${date}

Dear ${Recipient.title} ${Recipient.lastName};

Thank you very much for your recent correspondence concerning ${topic}, however we regret to inform you that we really don't care.

Very Insincerely,

Vice President of Automated Affairs,
${signature.image}
${signature.text}

${signature.date}


Other than this:
User is offlineProfile CardPM
+Quote Post

NickDMax
RE: Mailmerge
3 Aug, 2008 - 12:26 PM
Post #3

2B||!2B
Group Icon

Joined: 18 Feb, 2007
Posts: 2,858



Thanked: 49 times
Dream Kudos: 550
My Contributions
Dream.In.Code has a policy by which we prefer to see a good faith effort on your part before providing source code for homework assignments. Please post the code you have written in an effort to resolve the problem, and our members would be happy to provide some guidance. Be sure to include a description of any errors you are encountering as well.

Post your code like this: code.gif

Thanks.
User is offlineProfile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/2/08 05:32AM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month