Re: Printers - How do I?

Author: Richard Kaye

Posted: 2005-03-03 at 08:52:26

The record in the FRX with the EXPR, TAG & TAG2 info is always the first

physical row. At least I've never seen it in any other row in an FRX (or

LBX for that matter). So if you roll your own code, or use Peter's

solution, for hacking an FRX you shouldn't have to do a locate for that

record. Second, W98 stores custom form information with the printer you

have defined whereas NT/W2K/XP store custom forms globally. IOW, once

you create a custom form it is available to all installed printers on

that system. The difference in behavior between them can cause you a

great deal of grief if your custom form reports have to print in a mixed

environment. For example, if you design your report on a 98 box, it will

have one value for PAPERSIZE. It will work on any other 98 box that has

that same printer with the same custom form installed. But if you design

it on an NT box, the PAPERSIZE value is stored in the registry in a

different place and is specific to the machine you were on. That value

is not likely to exist on a different system and means absolutely

nothing to your 98 systems. That won't stop the report from printing. It

will just come out on a standard letter format instead of your carefully

designed custom form size. The best solution I've found so far is to set

up a shared printer on a NT/W2K box and create the form on that system.

Designate the custom form as the default form for that shared printer

and make sure your users know that in order to print that particular

report, they have to use that shared printer.

Peter Cushing wrote:

> If you want a report to always print to a particular printer, that is

> easy. You just save the information in page setup/print setup when

> designing the report layout and the report will alway print to this

> printer. If you want it to print to several printers, you will have

> to clear out the printer information stored in the TAG TAG2 and EXPR

> fields of your report. E.G mylayout.frx Open this like any table and

> first record should be objtype=1 AND objcode=53, clear out these three

> fields then use SET PRINTER TO NAME ... and the report will go to that

> name.

> <snip>

> A special papersize would go in the EXPR field above in PAPERSIZE=

> To get the right setting you would set the printer up with this

> papersize, then design your layout and pick this printer and save it.

> Then look in the expr field to get the setting.

> I assume if you pick a different tray, DEFAULTSOURCE will change, but

> not tested that.

>

--

Richard Kaye

RFC Systems

Voice: 973.761.0868

Fax: 973.761.4329

For the fastest response time, please send your tech support

queries to techsupport@rfcsystems.com

---------------------------------------------------------

---------------------------------------------------------

©2005 Richard Kaye