|
Home > Archive > Programming with dBASE > November 2005 > Printing problem Vb Plus 2.60
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Printing problem Vb Plus 2.60
|
|
| Charles 2005-10-31, 8:23 pm |
| I have two problems. I am using an editor box to type in information that will be printed after clicking a button. I am not using a report form to print from, it's just printed on the fly. My first problem is that word wrap does not work on the printer
straight from the editor. Is there a way to force word wrap to the printer? My second problem is that the printed page will not eject unless I exit dBASE. The eject command is there, but ignored. How can I get the page to eject without having to exit
the program?
| |
| Ken Mayer [dBVIPS] 2005-10-31, 8:23 pm |
| Charles wrote:
> I have two problems. I am using an editor box to type in information that will be printed after clicking a button. I am not using a report form to print from, it's just printed on the fly. My first problem is that word wrap does not work on the print
er straight from the editor. Is there a way to force word wrap to the printer? My second problem is that the printed page will not eject unless I exit dBASE. The eject command is there, but ignored. How can I get the page to eject without having to ex
it the program?
I don't think you can get word-wrap to work like that.
For the eject, try closing the printer:
set printer to
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Ivar B. Jessen 2005-11-01, 3:23 am |
| On Mon, 31 Oct 2005 16:27:36 -0500, Charles <grahamcp@journey.com> wrote:
>I have two problems. I am using an editor box to type in information that will be printed after clicking a button. I am not using a report form to print from, it's just printed on the fly. My first problem is that word wrap does not work on the printe
r straight from the editor. Is there a way to force word wrap to the printer? My second problem is that the printed page will not eject unless I exit dBASE. The eject command is there, but ignored. How can I get the page to eject without having to exi
t the program?
Try the code below my signature. When the form opens click on the 'Print'
button and the text in the editor should print out with word wrap and the
the page should be ejected from the printer.
Ivar B. Jessen
//-----
** END HEADER -- do not remove this line
//
// Generated on 01-11-2005
//
parameter bModal
local f
f = new editorWrapForm()
if (bModal)
f.mdi = false // ensure not MDI
f.readModal()
else
f.open()
endif
class editorWrapForm of FORM
with (this)
onOpen = class::FORM_ONOPEN
height = 11.6818
left = 53.0
top = 0.0
width = 40.0
text = ""
endwith
this.EDITOR1 = new EDITOR(this)
with (this.EDITOR1)
height = 8.5
left = 2.0
top = 1.0
width = 37.0
value = ""
endwith
this.PUSHBUTTON1 = new PUSHBUTTON(this)
with (this.PUSHBUTTON1)
onClick = class::PUSHBUTTON1_O
NCLICK
height = 1.0909
left = 13.0
top = 10.0
width = 15.2857
text = "Print"
endwith
function form_onOpen
cString = "I have two problems. I am using an editor box to type in "
cString += "information that will be printed after clicking a button. "
cString += "I am not using a report form to print from, it's just "
cString += "printed on the fly. My first problem is that word wrap "
cString += "does not work on the printer straight from the editor. "
cString += "Is there a way to force word wrap to the printer? "
cString += "My second problem is that the printed page will not eject "
cString += "unless I exit dBASE. The eject command is there, but "
cString += "ignored. How can I get the page to eject without having "
cString += "to exit the program?"
form.editor1.value = cString
return
function PUSHBUTTON1_onClick
cString = form.editor1.value
set console off
_lmargin = 10
_rmargin = 35
_wrap = true
_peject = "None"
set printer on
printjob
? cString
?
endprintjob
close printer
set printer off
set console on
return
endclass
//-----
| |
| Ken Mayer [dBVIPS] 2005-11-01, 9:23 am |
| Ivar B. Jessen wrote:
> On Mon, 31 Oct 2005 16:27:36 -0500, Charles <grahamcp@journey.com> wrote:
>
>
er straight from the editor. Is there a way to force word wrap to the printer? My second problem is that the printed page will not eject unless I exit dBASE. The eject command is there, but ignored. How can I get the page to eject without having to ex
it the program?[color=darkred]
>
>
> Try the code below my signature. When the form opens click on the 'Print'
> button and the text in the editor should print out with word wrap and the
> the page should be ejected from the printer.
> _wrap = true
Been so long since I looked at streaming output, I forgot that option.
Ken
--
/(Opinions expressed are purely my own, not those of dataBased
Intelligence, Inc.)/
*Ken Mayer* [dBVIPS]
/Golden Stag Productions/
dBASE at goldenstag dot net
http://www.goldenstag.net/GSP
http://www.goldenstag.net/dbase
| |
| Ivar B. Jessen 2005-11-01, 11:23 am |
|
On Tue, 01 Nov 2005 06:19:21 -0800, "Ken Mayer [dBVIPS]"
< dbase@_nospam_golden
stag.net> wrote:
ter straight from the editor. Is there a way to force word wrap to the printer? My second problem is that the printed page will not eject unless I exit dBASE. The eject command is there, but ignored. How can I get the page to eject without having to e
xit the program?[color=darkred]
>
>
>Been so long since I looked at streaming output, I forgot that option.
>
>Ken
And Charles forgot that he just needed to type HELP WRAP to get a solution
to his problems ;-)
Ivar B. Jessen
| |
| Charles 2005-11-03, 8:24 pm |
| Ken Mayer [dBVIPS] Wrote:
I tried that too and it doesn't work. I guess I'll just have to use the report writer. Thanks
Charles
>
> I don't think you can get word-wrap to work like that.
>
> For the eject, try closing the printer:
>
> set printer to
>
> Ken
>
> --
> /(Opinions expressed are purely my own, not those of dataBased
> Intelligence, Inc.)/
>
> *Ken Mayer* [dBVIPS]
> /Golden Stag Productions/
> dBASE at goldenstag dot net
> http://www.goldenstag.net/GSP
> http://www.goldenstag.net/dbase
| |
| Charles 2005-11-03, 8:24 pm |
| Ivar B. Jessen Wrote:
Thank you! It works great!
Charles
> Try the code below my signature. When the form opens click on the 'Print'
> button and the text in the editor should print out with word wrap and the the page should be ejected from the printer.
>
>
> Ivar B. Jessen
|
|
|
|
|