-
Hi guys,
As part of an application I have written, I need to include a document text editor. The purpose of this is to allow a user to design a quotation document. This document is in the form of a letter, with all the usual stuff, like addresses, "Dear Mr..." etc... One thing that needs to be accounted for is headed paper! (By this I mean paper with the company logo already printed on it.) If the user wants to use headed paper to print out the document, the "to" address may need to be repositioned so that it doesn't obscure the pre-printed part of the paper.
Can any one suggest a way of allowing the user to design where the "to" address should go? I guess it will involve dragging a box onto a blank document, the box having the dimensions of the "to" address. I would be grateful for any assistance. At the present, I know nothing about drag and drop, so I would be grateful if any help could be extensive!
Thanks in advance,
Steve.
-
This is pritty simply.
Public Header as string
In the menu just have an
option that says "Edit
Header", or you could have
a Header Button on the
form.
Then all you need to do
is this.
Code:
Header = "Steve" & vbNewLine & _
"Bla bla bla" & vbNewLine & _
"City, State" & vbNewLine & _
"Zip Code"
So just make up the variable like
that, and it will have the actual
lines in it. Then you can have the
program print the variable (and save)
with the text file.
Any Questions?
-
Thanks for the advice Evan (Again!)
I don't think I explained myself very well! I already have a routine to print the user address on a letter - you're right - it is very simple!
I think the problem has been solved now - I'll tell you what I wanted and how I did it - you might have a better suggestion:
On a letter you get two addresses. The "to" address and the "from" address. Usually, the to address goes on the left at the top, and the from address goes on the right. However, rather than have their company address typed on the letter, some firms prefer to use nice paper with their address already printed at the top of the page - usually in loads of colours and stuff. This approach is called headed paper. Obviously, the "to" address always has to be typed as usual. This is the problem. Sometimes, the pre-printed header on headed note paper sprawls across the page, so much so that the "to" address has to be moved from the place you'd put it on blank paper - otherwise it overlaps the header. What I wanted was a way for the user to position the "to" address on the letter, so that it didn't overlap with their own personal header.
I envisaged a blank letter appearing on a menu, on which the user could specify the top left location of the "to" address on the letter. Or maybe the user could drag a sample address onto a blank letter, to the point where the "to" address would be printed out on real documents.
This is the solution I will use: I will ask the user to type in the distance from the top of the page to the bottom of the header. Then, the program will leave that section of the paper blank. I think that's the easiest way, right?
Thanks again for your help Evan.
Cheers,
Steve.
-