Printing a Latter

I have a document that need to get customer name inside it, and to be print.I got the customer info within the program. What would be the best way (as far as perfomance) to combine the information with the document and print it.
eliasisAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mark2150Commented:
What format is the document in?

You can print the whole thing from VB. This will give you a standalone app instead of having to rely on Word or some other program for your support. I prefer this type of usage as it keeps updates to the external program from killing your app.

You could easily create, say a RichText document and then search on a marker in the text, say %NAME%. A simple string substitution and you're document is ready to print. Since RTF files can have fonts and such you can do a fairly fancy printout. Since the RTF file is external to your program you can make changes to it without having to recompile.

RTF suffers from limits on spacing and won't put page headings and such, but in general it'll work well for a one or two page letter.

M
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
eliasisAuthor Commented:
Thank u Mark,
I didn't decide yet at what type create the document so I'm flexible on that.
But what do you mean by having it within VB. My concern is that the application not going to slow down.
0
eliasisAuthor Commented:
Thank u Mark,
I didn't decide yet at what type create the document so I'm flexible on that.
But what do you mean by having it within VB. My concern is that the application not going to slow down.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.