Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to create Report A5 with width 210mm and height 148mm

1,441 views
Skip to first unread message

Mitja Mo�ina

unread,
Nov 18, 2009, 9:28:17 AM11/18/09
to
I have Windows XP SP3, VFP 9 SP1.
The printer is dot matrix. The paper is endless pre-printed with some form
format A5 with width 210mm and with perforation at each 148mm.
How can create Report for this paper? In Page Setup there is also offered A5
format but I do not know how to exchange width with height. To set
Orientation from Portrait to Landscape is not solution because the format
remains the same just printing is upright. Am I missed something?

TIA
Mitja


Jürgen Wondzinski

unread,
Nov 18, 2009, 10:51:32 AM11/18/09
to
Hi Mitja,

>> Am I missed something?

Jepp ;) You first need to create your special paper format. This is done
at the printserver-level, which is usually the PC at which that printer is
physically connected to.

In Windows go to ControlPanel, start Printer, and then in the file menu you
should find something called "Server Properties" The first page of the next
dialog is called "FORMS" and in the middle is a checkbox to create a new
Form definition. Enter a name, and the correct paper size, save it. After
that you can now use that new papersize in all printers which are connected
to that print-server.

Then on your PC, select that printer and set the papersize to the newly
created one.

Then in VFP, first select that printer from the commandwindow, if it's not
your defaultprinter with:
SET PRINTER TO NAME (GETPRINTER())
and then create your report. As you can see, the papersize is now fitting to
your definition.


--

wOOdy
Visual FoxPro Evangelist
Microsoft "Most Valuable Professional" 1996 to 2009

"*��)
�.���.�*��) �.�*�)
(�.��. (�.�` *
..�`.Visual FoxPro: It's magic !
(�.�``��*

tom knauf

unread,
Nov 19, 2009, 9:43:16 AM11/19/09
to
Hi,

wOOdy wrote everything you have to know, just a reminder :

WHENEVER you change this report, set the printer to your special one as
wOOdy has described.

As far as I remember, the format information is always saved, even if "save
printer env." is not marked.
So you get strange effects when you forget it.
You can use a "copy" of the printer in your development with save to file if
you have no physical access to it.

Regards
tom

"Mitja Mo�ina" <mitja_...@t-2.net> schrieb im Newsbeitrag
news:uDrVgtF...@TK2MSFTNGP05.phx.gbl...

Mitja Mozina

unread,
Nov 20, 2009, 6:33:48 AM11/20/09
to
Thank you both wOOdy and tom,

In my "Print Server Properties" I found 187 forms and among them also
exactly the form I want. His name is "A5 Rotated". So I already have
requested form and I suppose that it will be at the customer's PC too.

I had defined my default printer to Epson FX-80 ( yes, very old printer )
and in my VFP "Page Setup" was offered just few ( 6 ) of them : A4, A5,
B5(JIS), Fontfold 8,5 x 12 in, Legal, Letter. Then I changed ( wOOdy let me
think about this ) default printer to Fax and "magicaly" there appeared all
forms in VFP's "Page Setup" and I could choose my desired form.

In my PC work fine. Customer has HP printer and he get wrong report! I have
Page footer at the end of rotated A5 form ( middle of A4 form ) but customer
got Page footer at the end of A4 form ! ! ! This is Expr from this FRX :

DRIVER=winspool
DEVICE=Fax
OUTPUT=SHRFAX:
ORIENTATION=0
PAPERSIZE=78
DEFAULTSOURCE=15
PRINTQUALITY=120
YRESOLUTION=144


I tried to save with and without "Save printer environment" but with no
result. He constantly got to much space between Group footer and Page
footer. Any suggestions?

I have a question : how could I add "A5 Rotated" form to Epson FX-80 printer
or any other printer? I look everywhere but I don't see where can I do this.

Thank you again.

Mitja


Jürgen Wondzinski

unread,
Nov 20, 2009, 7:48:52 AM11/20/09
to
Hi Mitja,

>> Customer has HP printer and he get wrong report!

Again: Have you setup the printer at the customers site to actually use that
A5R paper? That setting is in the defaults setting for the printer (not in
FoxPro!). As long as the printer is on A4, you will always get a different
result.

Mitja Mo�ina

unread,
Nov 20, 2009, 8:02:34 AM11/20/09
to
Hello J�rgen,
I didn't because I don't know how to do this setting. I look at my Epson
FX-80 Properties and Printing preferences but there is not any options to
add some forms. I became very confused. Please tell me where can I add new
form.
Mitja


Mitja Mo�ina

unread,
Nov 23, 2009, 4:58:28 AM11/23/09
to
My customer had just 1 printer installed on his PC : HP LaserJet 1018.
When my customer added Fax to his "Printer and Faxes" ( Fax has all forms
defined in his Printing References ! ) the Preview become to correctly show
the picture on screen. But when he print the report to printer the output is
still on A4 format.
Then we add "A5 Rotated" form to HP printer with width 210 and height 148mm.
This printer allowed to customize form other printers do not allow
customizing. Then we delete the Fax. In this case Preview also show on A4
format! So conclusion is that Fax must be defined but still output to
printer is on A4 format. Am I first developer with this problem?

Mitja

"J�rgen Wondzinski" <jue...@wondzinski.de> wrote in message
news:eJWyS$daKHA...@TK2MSFTNGP05.phx.gbl...


> Hi Mitja,
>
>>> Customer has HP printer and he get wrong report!
>
> Again: Have you setup the printer at the customers site to actually use
> that A5R paper? That setting is in the defaults setting for the printer
> (not in FoxPro!). As long as the printer is on A4, you will always get a
> different result.
>
>
> --
>
> wOOdy
> Visual FoxPro Evangelist
> Microsoft "Most Valuable Professional" 1996 to 2009
>
>
>

> "*��)
> �.���.�*��) �.�*�)
> (�.��. (�.�` *
> ..�`.Visual FoxPro: It's magic !
> (�.�``��*
>


Bill Leavy

unread,
Dec 9, 2009, 11:11:45 AM12/9/09
to
Hi Woody -

I'm having a similar problem, so if you don't mind, I'm going to jump
in here.

I have a user looking to print continuous form labels one at a time on
a dot matrix printer without the page feed wasting labels. The
printer is an Epson LX300+ and the operating system is XP on both my
machine and the users machine.

Since I don't have a dot matrix printer, I installed an Epson LX300+
to my printers and pointed it to print to file.

I went to the server properties and added a new form called "VDP
Labels", set the correct dimensions, and saved the form. It now shows
up in the server properties list.

I then made the Epson my default printer, went to "Printing
Preferences", went to the "Paper/Quality" page and clicked "Advanced".
This opens up a new page with a setting for "Page Size" and a drop
down list next to it, but there is no choice to use "VDP Labels". How
do I set my printer to use the new form size?

-- Bill

Villi Bernaroli

unread,
Feb 15, 2010, 10:00:44 AM2/15/10
to
Mitja Mo�ina wrote:

> Then we add "A5 Rotated" form to HP printer with width 210 and height
> 148mm. This printer allowed to customize form other printers do not
> allow customizing. Then we delete the Fax. In this case Preview also
> show on A4 format! So conclusion is that Fax must be defined but
> still output to printer is on A4 format. Am I first developer with
> this problem?

No, you're not the first one :)
Just open the "Printers and faxes" window from Control Panel: it's important
that you open this particular window because what yoy are looking for is in
its menu. Go into the "File" menu of this "Printers and faxes" window:
you'll find "Server properties" (or something like that, I'm using an
italian Windows XP and just translating from italian to english). There you
can add or modify forms and those forms will be available to all the
printers installed.
--
Villi Bernaroli, Italy
VFP, SOAP, MS SQLserver, MySQL, Oracle

0 new messages