News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

trying to print

Started by DC, February 19, 2006, 02:49:36 AM

Previous topic - Next topic

DC

is there a good tut for getting rich text to a printer DC or something along those lines?
thanx,
DC
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

PBrennick

I don't know about a good tutorial but I have a good example of it working correctly.  Go to Ewayne Wagner's website, http://asmedit.massmind.org/ and look for WordEdit.  It is a mini wordprocessor.  It prints multiple fonts, colors, etc.  It has left, center and right justification.  When you make changes to a portion of text make sure you select "Apply to a Selection" instead of "Apply to All."

EDIT:  To keep your formatting, when you save the file make sure you use .rtf for the tail or all the formatting will be stripped.

hth,
Paul
The GeneSys Project is available from:
The Repository or My crappy website

DC

thanx Paul,
I was able to gleen some usefull code from that.
printing sure is another animal, eh?
take care,
DC
this isn't daja vu, I'm just learning it for the 37th time
http://www.bmath.net

farrier

DC,

The attached file uses the function PrintRTF:
RTF filename,
Landscape/Portrait,
Print/View,
number of copies

The code was possible due to the help of Chibb777's RTF printing and displaying code.

In this code, Print/View doesn't work.

From the main window, a child window is created to display the file, PageBreaks are simulated in a lame way, and then the file is printed.  The file is printed to the default printer, the code could be changed to print to a printer of choice.

Code uses FASM syntax.

hth,

farrier


[attachment deleted by admin]
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

PBrennick

Where can we find Chibb777's RTF printing and displaying code.

Paul
The GeneSys Project is available from:
The Repository or My crappy website

farrier

PBrennick,

If I had spelled his name correctly :red, Chib777, it would have shown up on the search for this board.  He has provided his XXControls package.  Very nice :U

hth,

farrier
It is a GOOD day to code!
Some assembly required!
ASM me!
With every mistake, we must surely be learning. (George...Bush)

PBrennick

Farrier,
Thank you, I found it, xxControls.

Paul
The GeneSys Project is available from:
The Repository or My crappy website