Ok.. here's my situation. I have a program that handles a database full of
people. Users of the program have the ability to send out notifications to
these people. Pretty standard notifications, the program tracks when
notifications are sent out and who sends them. Currently these
notifications are all sent via email.
Now the program users also want the ability to send these notifications via
standard snail mail. (I'll make a popup box come up "Do you want to print
this notification?") I want to allow the users the ability to modify these
notifications as well so that will not have to be done programmaticall y
if/when notification wording changes. The notifications need to allow for
variables to be insert into the document .. for example, the persons name,
address, salutation, etc. The document needs to have the capability to
print not only the document but a mailing envelope as well so my first
thought as to the document medium is to use Microsoft Word.
Originally my plan was to just have the program save the location (selected
by the user) of a Microsoft Word document. The Word document opens and the
user manually enters the recepient information. This, however, is an
undesirable solution. The users really want the information to be imported
programmaticall y, somewhat like a Word mail merge (except it only needs to
handle one user at a time). So my next thought is to create a Word document
dynamically every time a user opts for a printable document. Not sure if
this is ideal either because I'm not sure how I'll allow the users to edit
these documents seeing as how they don't exist as a document, I'd probably
save the document body information in a database and allow the users to
modify that. Anyways, just looking for some ideas here. Is there any way
to create a Word document and use variable fields (example: <<First Name>>,
<<Last Name>>, etc.), then have my program open that document and insert the
variable data? Are their any other output solutions (besides Microsoft
Word) I should be looking at?
Thanks for any suggestions,
Ryan 7 4182
Hi Ryan,
I think you may consider the VSTO which is introduced from VS.NET 2005.
We have a special BookMark control in VSTO project, we can use that as the
insert variable.
And it support DataBinding which will easierly to connect it onto database. http://www.officezealot.com/VSTO/videos.aspx http://blogs.msdn.com/vsto2/archive/...29/123027.aspx http://blogs.msdn.com/pstubbs/archiv...03/225513.aspx
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
VSTO is a separate product from VS 2005 Pro correct? (so it would require
the purchase of more software)
I had another thought this morning. Maybe I'll export the data from the
notification to an Excel file. From there, the user can easily perform
their own mail merge in Word manually.
Ryan
""Peter Huang" [MSFT]" <v-******@online.m icrosoft.com> wrote in message
news:s$******** ******@TK2MSFTN GXA01.phx.gbl.. . Hi Ryan,
I think you may consider the VSTO which is introduced from VS.NET 2005. We have a special BookMark control in VSTO project, we can use that as the insert variable. And it support DataBinding which will easierly to connect it onto database.
http://www.officezealot.com/VSTO/videos.aspx
http://blogs.msdn.com/vsto2/archive/...29/123027.aspx
http://blogs.msdn.com/pstubbs/archiv...03/225513.aspx
If you still have any concern, please feel free to post here.
Best regards,
Peter Huang
Microsoft Online Community Support =============== =============== =============== ===== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. =============== =============== =============== ===== This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Ryan,
You are correct.
The VSTO is included in the VSTS version of VS.NET 2005. Or you may buy a
Visual Studio Tools for Office System develop tools stand alone package.
Word Mail Merge is an approach as you said.
Also I think you may try to consider the Smart Document which is somewhat
complex than VSTO, but you may have a look.
Smart Documents Made Easier for .NET Developers http://msdn.microsoft.com/library/de...us/dno2k3ta/ht
ml/odc_SmartDocsWr apper.asp
Best regards,
Peter Huang
Microsoft Online Community Support
=============== =============== =============== =====
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
=============== =============== =============== =====
This posting is provided "AS IS" with no warranties, and confers no rights.
Ryan,
I'm not quite sure what you want to do here. Maybe you don't need any
sophisticated Word programming, though. If your program already has the
list of names/addresses in its database, as well as the text of the
notices, then you could insert everything into a text file, then open
it in Notepad so the user could print it.
If the notice text is in one or more separate documents, you could put
placeholders in the text (such as ??name, ??addr1, ??city, etc.) and
your program could open the text file, put it into a string, and then
do a Replace function for each placeholder.
Of course, if you have tens or hundreds of names in the database and
users have to send the notice to many people at one time, that wold
probably best be handled by programming Word to do a mailmerge.
Good luck!
Ryan wrote: Ok.. here's my situation. I have a program that handles a database full of people. Users of the program have the ability to send out notifications to these people. Pretty standard notifications, the program tracks when notifications are sent out and who sends them. Currently these notifications are all sent via email.
Now the program users also want the ability to send these notifications via standard snail mail. (I'll make a popup box come up "Do you want to print this notification?") I want to allow the users the ability to modify these notifications as well so that will not have to be done programmaticall y if/when notification wording changes. The notifications need to allow for variables to be insert into the document .. for example, the persons name, address, salutation, etc. The document needs to have the capability to print not only the document but a mailing envelope as well so my first thought as to the document medium is to use Microsoft Word.
Originally my plan was to just have the program save the location (selected by the user) of a Microsoft Word document. The Word document opens and the user manually enters the recepient information. This, however, is an undesirable solution. The users really want the information to be imported programmaticall y, somewhat like a Word mail merge (except it only needs to handle one user at a time). So my next thought is to create a Word document dynamically every time a user opts for a printable document. Not sure if this is ideal either because I'm not sure how I'll allow the users to edit these documents seeing as how they don't exist as a document, I'd probably save the document body information in a database and allow the users to modify that. Anyways, just looking for some ideas here. Is there any way to create a Word document and use variable fields (example: <<First Name>>, <<Last Name>>, etc.), then have my program open that document and insert the variable data? Are their any other output solutions (besides Microsoft Word) I should be looking at?
Thanks for any suggestions, Ryan
Peter,
I just clicked on your link to "smart documents made easier" and got a
message "Page Not Found". I might be interested in "Smart" documents so
if you have a better link I'd like to know what it is. Thanks.
"Peter Huang" [MSFT] wrote: Hi Ryan,
You are correct. The VSTO is included in the VSTS version of VS.NET 2005. Or you may buy a Visual Studio Tools for Office System develop tools stand alone package.
Word Mail Merge is an approach as you said.
Also I think you may try to consider the Smart Document which is somewhat complex than VSTO, but you may have a look.
Smart Documents Made Easier for .NET Developers http://msdn.microsoft.com/library/de...us/dno2k3ta/ht ml/odc_SmartDocsWr apper.asp
Best regards,
Peter Huang
Microsoft Online Community Support =============== =============== =============== ===== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. =============== =============== =============== ===== This posting is provided "AS IS" with no warranties, and confers no rights.
His link is correct, it just didn't link it all in this message. If this
doesn't work just copy and paste the entire text. http://msdn.microsoft.com/library/en...ocsWrapper.asp
<bo*@datasync.c om> wrote in message
news:11******** *************@i 40g2000cwc.goog legroups.com... Peter,
I just clicked on your link to "smart documents made easier" and got a message "Page Not Found". I might be interested in "Smart" documents so if you have a better link I'd like to know what it is. Thanks.
"Peter Huang" [MSFT] wrote: Hi Ryan,
You are correct. The VSTO is included in the VSTS version of VS.NET 2005. Or you may buy a Visual Studio Tools for Office System develop tools stand alone package.
Word Mail Merge is an approach as you said.
Also I think you may try to consider the Smart Document which is somewhat complex than VSTO, but you may have a look.
Smart Documents Made Easier for .NET Developers http://msdn.microsoft.com/library/de...us/dno2k3ta/ht ml/odc_SmartDocsWr apper.asp
Best regards,
Peter Huang
Microsoft Online Community Support =============== =============== =============== ===== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. =============== =============== =============== ===== This posting is provided "AS IS" with no warranties, and confers no rights.
The document needs to be able to print an envelope too.. and notifications
could be sent to multiple people (I know I said before one person at a time
but I may change this). I'm really starting to lean towards the export data
to excel, allow the user to perform a mail merge idea.
<bo*@datasync.c om> wrote in message
news:11******** **************@ u72g2000cwu.goo glegroups.com.. . Ryan,
I'm not quite sure what you want to do here. Maybe you don't need any sophisticated Word programming, though. If your program already has the list of names/addresses in its database, as well as the text of the notices, then you could insert everything into a text file, then open it in Notepad so the user could print it.
If the notice text is in one or more separate documents, you could put placeholders in the text (such as ??name, ??addr1, ??city, etc.) and your program could open the text file, put it into a string, and then do a Replace function for each placeholder.
Of course, if you have tens or hundreds of names in the database and users have to send the notice to many people at one time, that wold probably best be handled by programming Word to do a mailmerge.
Good luck! Ryan wrote: Ok.. here's my situation. I have a program that handles a database full of people. Users of the program have the ability to send out notifications to these people. Pretty standard notifications, the program tracks when notifications are sent out and who sends them. Currently these notifications are all sent via email.
Now the program users also want the ability to send these notifications via standard snail mail. (I'll make a popup box come up "Do you want to print this notification?") I want to allow the users the ability to modify these notifications as well so that will not have to be done programmaticall y if/when notification wording changes. The notifications need to allow for variables to be insert into the document .. for example, the persons name, address, salutation, etc. The document needs to have the capability to print not only the document but a mailing envelope as well so my first thought as to the document medium is to use Microsoft Word.
Originally my plan was to just have the program save the location (selected by the user) of a Microsoft Word document. The Word document opens and the user manually enters the recepient information. This, however, is an undesirable solution. The users really want the information to be imported programmaticall y, somewhat like a Word mail merge (except it only needs to handle one user at a time). So my next thought is to create a Word document dynamically every time a user opts for a printable document. Not sure if this is ideal either because I'm not sure how I'll allow the users to edit these documents seeing as how they don't exist as a document, I'd probably save the document body information in a database and allow the users to modify that. Anyways, just looking for some ideas here. Is there any way to create a Word document and use variable fields (example: <<First Name>>, <<Last Name>>, etc.), then have my program open that document and insert the variable data? Are their any other output solutions (besides Microsoft Word) I should be looking at?
Thanks for any suggestions, Ryan This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Geoff |
last post by:
I have been asked to add postal rates to a web page shopping cart checkout
procedure. After contacting the post office I discovered that they used XML
to receive postal rate requests and send back the rate for a certain size,
"from:" address, "To:" address and delivery service speed. The examples
they showed used a HTML "Text Area" and a HTTP post statement to send the
request however I need to use input from an input box and then insert...
|
by: Raqueeb Hassan |
last post by:
Hello There!
Have you guys tried inserting variables in mySQL tables? Do I have to
use 'quote' as we had been doing to insert strings?
mysql> INSERT INTO occurrence (word_id,page_id) VALUES
($word_id,$page_id);
ERROR 1054: Unknown column '$word_id' in 'field list'
|
by: studen77 |
last post by:
Thanks in advance to anyone who can help :)
I'm trying to extract a specific NodeSet out of an XML file; however, I'd
like to include a C# string variable as part of the XPATH statement; so far
I've been unsuccessful and I'd like to know if this is even possible and if
so how to do it.
An example:
XMLDOC.SELECTNODES(/root/child)
(sees the literal 'csharpvariable', not the actual underlying C# variable
|
by: altergothen |
last post by:
Hi there
I am a newbie to ASP.Net - Please Help!
I am trying to insert the values of my variables into a database.
If I try the following it works perfectly:
string insertQuery = "INSERT into test(name,surname,email) VALUES('Bob',
'Sly', 'bobsly@yahoo.com')";
but instead of inputing the values directly, I want to insert them as
variables like so:
|
by: Navillus |
last post by:
Hi all,
I have a cookie setup to store usernames and passwords for my site.
Additionally, I'd like to store some variables in the cookie, and be
able to extract them back out. I'm having trouble doing this. Here's my
code thus far:
<head>
<!-- Javascript functions
***************************************************************** -->
<script>
| |
by: petermichaux |
last post by:
Hi,
I have tried the following based on suggestions of the best way to
insert JavaScript into a page. This is instead of using eval().
Unfortunately IE says "unexpected call to property or method access"
for the second to last line of my function.
If you know what I've done wrong or how to fix it I would appreciate
the help.
|
by: javediq143 |
last post by:
Hi All,
This is my first post in this forum. I'm developing a CMS for my latest website. This CMS is also in PhP & MySQL. I'm done with the ADD section where the Admin can INSERT new records in Database but I'm stuck in the EDIT. I'm getting 2 problems over here. Below is the description:
1)The FIRST page will list all the records from the table which Admin can EDIT with CHECKBOX for each record to select. He can select one or more than one...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |