RE: Weird report error

Author: Cathy Pountney

Posted: 2011-04-21 at 11:58:47

Even though the help file lists them that way .. it won't work!! It's touchy

about the order of the PREVIEW clause. It has to come after the TO PRINTER

clause.

This will cause an error (Missing comma -- which makes no sense!):

REPORT FORM junk NOCONSOLE preview TO PRINTER PROMPT

This will run:

REPORT FORM junk NOCONSOLE TO PRINTER PROMPT preview

Just a wild guess ... Check to see what your default printer driver is set

to. Is that the same printer you are selecting when you try it without the

PREVIEW clause. The "PREVIEW" will use whatever your default printer is. The

TO PRINTER PROMPT will obviously use whatever printer you select.

Cathy Pountney

> -----Original Message-----

> From: profoxtech-bounces@leafe.com [mailto:profoxtech-bounces@leafe.com]

On

> Behalf Of address@leafe.com

> Sent: Thursday, April 21, 2011 11:25 AM

> To: profoxtech@leafe.com

> Subject: Re: Weird report error

>

> Hi Kent,

>

> From the help:

> REPORT FORM FileName1 | ? [ENVIRONMENT] [Scope] [FOR lExpression1]

> [WHILE lExpression2] [HEADING cHeadingText] [NOCONSOLE]

> [NOOPTIMIZE] [PLAIN] [RANGE nStartPage [, nEndPage]]

> [PREVIEW [[IN] WINDOW WindowName | IN SCREEN] [NOWAIT]]

> [TO PRINTER [PROMPT] | TO FILE FileName2 [ASCII]] [NAME ObjectName]

> [SUMMARY]

>

> So try the command in the order they show from the help.

>

> REPORT FORM PARKLST1 NOCONSOLE PREVIEW TO PRINTER PROMPT

>

> HTH

>

> *Peter Cushing *

> IT development and support

>

> Signature

>

>

> Kent Belan wrote:

> > Hello,

> >

> > Here is my weird problem for the day.

> >

> > I have a report form that works great as long as PREVIEW is one of the

> > options.

> >

> > REPORT FORM PARKLST1 TO PRINTER PROMPT NOCONSOLE PREVIEW

> >

> > If I remove the PREVIEW option then I get an error:

> >

> > "Function argument value, type, or count is invalid"

> >

> > So why does the report work fine if PREVIEW ?

> >

> > How can I debug this report to find what is causing the error ?

> >

> > Thanks,

> > Kent

> >

> >

[excessive quoting removed by server]

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/001701cc003d$000b7e20$00227a60$@com

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2011 Cathy Pountney