Home > Archive > dBASE Reports > October 2005 > Re: Papersize for Printer in Report









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 Re: Papersize for Printer in Report
Dinesh Chauhan

2005-10-27, 8:02 am

How can you assign papersize? Like there are fixed sizes ie. 8.5x11, 8.5x 14
and some sizes for envelopes. Suppose I want to assign 8.5x8 for my dot
matrix printer as I have a lot of stationery in stock for tractor feed
forms.

Thanks in advance.

Dinesh Chauhan
Fiji Islands


Les Shewchuk

2005-10-27, 8:02 am

Use the PageTemplate.Height and PageTemplate.Width to set paper sizes in
your report.

But windows may not recognize those settings. Especially if you are working
with a tractor feed. When you reach the end of the page, the printer driver
sends a FormFeed command. This cause the printer to advance to the top of
the next page. If you are using a non-standard paper size, it will not
matter what size the report thinks the paper is, the printer will advance to
what ever it is set to. (this is not a problem on inkjets or laser printer,
where a formfeed ejects the page completely) You may have to play around
with the custom paper size in your printer controls to get that to work
right. The Custom Paper size in the print driver will reset the printer
before printing.

If you can eliminate or reduce the use of the dot matrix, that may be the
better way to go. Inkjets are relatively cheap, though the ink can be
expensive depending on the model you get. And you don't have to get rid of
your existing tractor feed stationary, just strip the pages as you need
them. I do not suggest using the tractor stationary in a laser printer. The
paper type is different (laser/photocopy paper has more moisture in it, to
survive the fusers) and the ink used on your stationary may react strangely
in the fusers (melt, burn, smoke, damage the imaging drum etc. etc.) The
inkjet may suffer from some bleeding (fuzzy edges where the wet ink runs
along the grain of the paper) but the quality will still be better than the
large impact heads of the dot matrix.

Les Shewhcuk

"Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
news:Y5le6awyFHA.1412@news-server...
> How can you assign papersize? Like there are fixed sizes ie. 8.5x11, 8.5x

14
> and some sizes for envelopes. Suppose I want to assign 8.5x8 for my dot
> matrix printer as I have a lot of stationery in stock for tractor feed
> forms.
>
> Thanks in advance.
>
> Dinesh Chauhan
> Fiji Islands
>
>



Dinesh Chauhan

2005-10-27, 8:02 am

Thanks Les

I understand your points. I use HP laser printer for all other job but I
have a printed stationery which will last me for another couple of years.
For that perticular forms to print, I am using epson tractor feed printer
with my old program in dbase Dos 5. In dos I have set the paper length with
_pline = 48 and rest of the code.

One more thing, I have tried that printer for network printing
SET PRINTER TO \\compuername\sharep
rintername=LPT1, this works OK with
Administrator rights. But when user login and try to print there is an
error saying incorrect redirect - printer.

Dinesh Chauhan

"Les Shewchuk" <les@tritonmarine.com> wrote in message
news:bTXfo91yFHA.1044@news-server...
> Use the PageTemplate.Height and PageTemplate.Width to set paper sizes in
> your report.
>
> But windows may not recognize those settings. Especially if you are
> working
> with a tractor feed. When you reach the end of the page, the printer
> driver
> sends a FormFeed command. This cause the printer to advance to the top of
> the next page. If you are using a non-standard paper size, it will not
> matter what size the report thinks the paper is, the printer will advance
> to
> what ever it is set to. (this is not a problem on inkjets or laser
> printer,
> where a formfeed ejects the page completely) You may have to play around
> with the custom paper size in your printer controls to get that to work
> right. The Custom Paper size in the print driver will reset the printer
> before printing.
>
> If you can eliminate or reduce the use of the dot matrix, that may be the
> better way to go. Inkjets are relatively cheap, though the ink can be
> expensive depending on the model you get. And you don't have to get rid of
> your existing tractor feed stationary, just strip the pages as you need
> them. I do not suggest using the tractor stationary in a laser printer.
> The
> paper type is different (laser/photocopy paper has more moisture in it, to
> survive the fusers) and the ink used on your stationary may react
> strangely
> in the fusers (melt, burn, smoke, damage the imaging drum etc. etc.) The
> inkjet may suffer from some bleeding (fuzzy edges where the wet ink runs
> along the grain of the paper) but the quality will still be better than
> the
> large impact heads of the dot matrix.
>
> Les Shewhcuk
>
> "Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
> news:Y5le6awyFHA.1412@news-server...
> 14
>
>



Les Shewchuk

2005-10-27, 8:02 am

"Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
news:NbB0KZ2yFHA.1132@news-server...
> Thanks Les
>
> I understand your points. I use HP laser printer for all other job but I
> have a printed stationery which will last me for another couple of years.
> For that perticular forms to print, I am using epson tractor feed printer
> with my old program in dbase Dos 5. In dos I have set the paper length

with
> _pline = 48 and rest of the code.


Ewww....dBase 5.0 for D.O.S....THAT changes a few things. (it's been a while
for that stuff)

_pline? do you mean _plineno or _plength. _plineno is the counter for the
current stream line, _plenth is the number of line available to stream.
When _plineno = _plenth, dBase issues a next page (either an FF or a series
of LF commands, depending on the setting of _padvance)

Also, is your paper 8.5x11 with only 8" usable (leaving 3" for letterhead
and footer) In that case, setting the _plength to 48 and then manually
cranking the paper up so that the print head is at the first usable line
should work.

However, if you are using a custom size paper, then you will have to dig
into the printer manual to find the ESC code to reset the page length. Use
the ??? to send the commands to the printer. There is a setting that will
reset it to X number of lines. The default value will be 66. When we did
cheques on Dot Matrix (with 2-part carbonless paper) the first command
before printing set the printer 44 lines per page and the last command when
done, set it back to 66.

Les Shewchuk

> One more thing, I have tried that printer for network printing
> SET PRINTER TO \\compuername\sharep
rintername=LPT1, this works OK with
> Administrator rights. But when user login and try to print there is an
> error saying incorrect redirect - printer.



Dinesh Chauhan

2005-10-27, 8:02 am

Hi Les

Yes I mean _plineno = 48 and its works OK with dBase for Dos and I am using
on local printer. How about if I want to use as a network printer for other
user to use that printer?

SET PRINTER TO \\compuername\sharep
rintername=LPT1, this works OK with
Administrator rights. But when user login and try to print there is an
error saying incorrect redirection - printer. This to do I have to run dBase
for Dos for printing that particular documents.

To avoid this if is there any way in Plus 2.6 to set the custom paper size
in printer property so I can print all documents in Plus 2.6?

Dinesh Chauhan




"Les Shewchuk" <les@tritonmarine.com> wrote in message
news:v0w1D%233yFHA.1304@news-server...
> "Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
> news:NbB0KZ2yFHA.1132@news-server...
> with
>
> Ewww....dBase 5.0 for D.O.S....THAT changes a few things. (it's been a
> while
> for that stuff)
>
> _pline? do you mean _plineno or _plength. _plineno is the counter for the
> current stream line, _plenth is the number of line available to stream.
> When _plineno = _plenth, dBase issues a next page (either an FF or a
> series
> of LF commands, depending on the setting of _padvance)
>
> Also, is your paper 8.5x11 with only 8" usable (leaving 3" for letterhead
> and footer) In that case, setting the _plength to 48 and then manually
> cranking the paper up so that the print head is at the first usable line
> should work.
>
> However, if you are using a custom size paper, then you will have to dig
> into the printer manual to find the ESC code to reset the page length.
> Use
> the ??? to send the commands to the printer. There is a setting that will
> reset it to X number of lines. The default value will be 66. When we did
> cheques on Dot Matrix (with 2-part carbonless paper) the first command
> before printing set the printer 44 lines per page and the last command
> when
> done, set it back to 66.
>
> Les Shewchuk
>
>
>



Les Shewchuk

2005-10-27, 8:02 am


"Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
news:QRq8dj5yFHA.1304@news-server...
> SET PRINTER TO \\compuername\sharep
rintername=LPT1, this works OK with
> Administrator rights. But when user login and try to print there is an
> error saying incorrect redirection - printer. This to do I have to run

dBase

> for Dos for printing that particular documents.


Boy, you're making this tough.

remember the \\compuername\sharep
rintername=LPT1 cannot exceed 31
characters. and the shareprintername should be no more than 8 characters.

from the windows Help
-------------------------
For shared printers, the entire qualified name (including the server name,
for example \\PRINTER2\PSCRIPT) must be fewer than 31 characters.
* If you share a printer with a variety of clients on a network, use 31 or
fewer characters for printer names, and do not include spaces or special
characters in these names.
* If you share a printer with MS-DOS computers, do not use more than eight
characters for the printer's share name. You can lengthen the name by adding
a period followed by no more than three characters, but you cannot use
spaces in the name.
-------------------------

Next, on the host computer, check the printer security (Printer Properties;
Security Tab). Select "Everyone" and give allow everything.

In windows 9X, when you set up a printer, it could capture one of the
printer ports....But I do not see a way to do that in XP (at least not one
that I can get working. I don't have the equipment anymore to test this.)

> To avoid this if is there any way in Plus 2.6 to set the custom paper size
> in printer property so I can print all documents in Plus 2.6?


printer.PaperType = 256 is usually the "custom" type that should accept the
pagetemplate paper sizes.. Again I don't have any dot matrix printers to
test this on anymore.


Hope this helps. I'm running out of ideas (at least until I can find a dot
matrix printer)

Les


Dinesh Chauhan

2005-10-27, 8:02 am

Hi Les

In fact I have SET PRINTER TO \\DC007\Epson=LPT1.
At the end you said that printer.PaperType = 256 is usually the "custom"
type that should accept the pagetemplate paper sizes. But there is no
property for printer .paperType. There is one is printer.paper.Size.

Look mforward to hear from you and thanks once again.

Dinesh Chauhan
Fiji Islands


"Les Shewchuk" <les@tritonmarine.com> wrote in message
news:%2331UPD3zFHA.1244@news-server...
>
> "Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
> news:QRq8dj5yFHA.1304@news-server...
> dBase
>
> Boy, you're making this tough.
>
> remember the \\compuername\sharep
rintername=LPT1 cannot exceed 31
> characters. and the shareprintername should be no more than 8 characters.
>
> from the windows Help
> -------------------------
> For shared printers, the entire qualified name (including the server name,
> for example \\PRINTER2\PSCRIPT) must be fewer than 31 characters.
> * If you share a printer with a variety of clients on a network, use 31 or
> fewer characters for printer names, and do not include spaces or special
> characters in these names.
> * If you share a printer with MS-DOS computers, do not use more than eight
> characters for the printer's share name. You can lengthen the name by
> adding
> a period followed by no more than three characters, but you cannot use
> spaces in the name.
> -------------------------
>
> Next, on the host computer, check the printer security (Printer
> Properties;
> Security Tab). Select "Everyone" and give allow everything.
>
> In windows 9X, when you set up a printer, it could capture one of the
> printer ports....But I do not see a way to do that in XP (at least not one
> that I can get working. I don't have the equipment anymore to test this.)
>
>
> printer.PaperType = 256 is usually the "custom" type that should accept
> the
> pagetemplate paper sizes.. Again I don't have any dot matrix printers to
> test this on anymore.
>
>
> Hope this helps. I'm running out of ideas (at least until I can find a
> dot
> matrix printer)
>
> Les
>
>



Les Shewchuk

2005-10-27, 8:02 am


"Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
news:PNfYyN5zFHA.1236@news-server...
> In fact I have SET PRINTER TO \\DC007\Epson=LPT1.
> At the end you said that printer.PaperType = 256 is usually the "custom"
> type that should accept the pagetemplate paper sizes. But there is no
> property for printer .paperType. There is one is printer.paper.Size.


My mistook. Yes it is the printer.PaperSize for the HP-PCL compatible
printers, the value for custom is 256, but that may be different with the
Epson driver.

It should pick up the paper sizes from the pagetemplate after that. If it
does not, you will have to define the custom size in the printer driver
first.

Les


Dinesh Chauhan

2005-10-27, 8:02 am

Thanks Les

How can I define the custom paper size in the printer driver? If you can
guide me how to, I will be most grateful.

Dinesh Chauhan


"Les Shewchuk" <les@tritonmarine.com> wrote in message
news:AqsXaLB0FHA.2056@news-server...
>
> "Dinesh Chauhan" < dineshchauhan@connec
t.com.fj> wrote in message
> news:PNfYyN5zFHA.1236@news-server...
>
> My mistook. Yes it is the printer.PaperSize for the HP-PCL compatible
> printers, the value for custom is 256, but that may be different with the
> Epson driver.
>
> It should pick up the paper sizes from the pagetemplate after that. If it
> does not, you will have to define the custom size in the printer driver
> first.
>
> Les
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com