-
[RESOLVED] Text & Images
Hi Guys,
I am just getting started on a solution and trying to decide a way of doing it.
Basically i want to create an rtf document that contains a company logo in the top right corner and then 2 paragraphs of text under it. basically a letter but on headed paper so when its printed on plain paper it includes the logo.
My first thought was a RichTextBox but i cant figure out a way or placing the image where i want it and lock it.
Any other ideas would be good.
-
Re: Text & Images
You can create a template in MS Word and use it every time you need to print document.
You can also create a report using any available report engine.
-
Re: Text & Images
Thanks for reply - i could create a template but the target machine does not have MS word installed only a MS reader as for report engine probly the same applies i can't think of anything installed on the target machines, i started with the actual print engine. i think if i can format the text in the richtextbox and then print this and the image this may suffice. but not ideal
-
Re: Text & Images
You can also use Printer object to print images:
Printer.PaintPicture ...
-
Re: Text & Images
Thanks - Found a small floor in what i am trying to do - when i add the text positioning it with Printer.CurrentX & Y it only positions the first line of the text.
I was any kinda hoping to add whole string and it all has the same left indent/alignment. Any ideas?
-
Re: Text & Images
There is a tutorial about printing in our Classic VB FAQs which explains (with examples) how to do things like that.
-
Re: Text & Images
Thanks Si - i allready sorted it anyway.