Alaska Software Inc. - DCREPOT problem
Username: Password:
AuthorTopic: DCREPOT problem
JoyDCREPOT problem
on Wed, 10 Nov 2004 11:40:05 -0500
Hello

I am transfering clipper code to XBase, I use code line:
DCREPORT FORM CATL2  XBP NOEJECT NOCONSOLE FOR SUBSTR(SUBCAT_NO,1,1)=MAINCD 
TO PRINTER WHILE inkey()!=K_ESC PRINTER @oPrinter

After this line I have DCPRINT ?

I always get error for any DCPRINT code line following DCREPORT CODE LINE.

Please give me a help.
Regan Cawkwell Re: DCREPOT problem
on Wed, 10 Nov 2004 17:11:08 +0000
Hi Joy

Joy wrote:
> Hello
> 
> I am transfering clipper code to XBase, I use code line:
> DCREPORT FORM CATL2  XBP NOEJECT NOCONSOLE FOR SUBSTR(SUBCAT_NO,1,1)=MAINCD 
> TO PRINTER WHILE inkey()!=K_ESC PRINTER @oPrinter
> 
> After this line I have DCPRINT ?
> 
> I always get error for any DCPRINT code line following DCREPORT CODE LINE.
> 
> Please give me a help. 

Hmm...I've never used DCREPORT FORM...but I have used DCPRINT.

The only thing that comes to mind is that DCPRINT is being used before 
the printer object is initialised (that's normally done with 'DCPRINT ON 
TO oPrinter').

The other question is whether these two commands can actually be used 
together.

Are you using form type printing for the main work and then completing 
it by adding some lines on the end?  A little more info may help...

Have you tried asking on Rogers Webboard...there is usually someone 
there that has used these commands.

Regan
Stuart FraserRe: DCREPOT problem
on Wed, 10 Nov 2004 11:33:18 -0600
Hi Joy,

you need to use DCPRINT OPTIONS first, check the docs for DCREPORT FORM,  
there's a good example in there.

DCPRINT OPTIONS sets up an array of print options that you pass to the  
DCREPORT FORM command.

HTH,

Stu.

On Wed, 10 Nov 2004 11:40:05 -0500, Joy <xzhang@caisoftdesign.ca> wrote:

> Hello
>
> I am transfering clipper code to XBase, I use code line:
> DCREPORT FORM CATL2  XBP NOEJECT NOCONSOLE FOR  
> SUBSTR(SUBCAT_NO,1,1)=MAINCD
> TO PRINTER WHILE inkey()!=K_ESC PRINTER @oPrinter
>
> After this line I have DCPRINT ?
>
> I always get error for any DCPRINT code line following DCREPORT CODE  
> LINE.
>
> Please give me a help.
>
>



Stuart Fraser
Senior Programmer / Analyst
IBM Managed Operations
Contracted Resource to:
B.C. Ministry of Health
Victoria, B.C.  Canada
JoyRe: DCREPOT problem
on Thu, 11 Nov 2004 13:41:20 -0500
Hi Stu:

Would you please give me the example, I am very appreciate.

Thanks

"Stuart Fraser" <stuartdashfraseratshawdotca> wrote in message 
news:opsg9e1srtixwq9t@stu.wayport.net...
> Hi Joy,
>
> you need to use DCPRINT OPTIONS first, check the docs for DCREPORT FORM, 
> there's a good example in there.
>
> DCPRINT OPTIONS sets up an array of print options that you pass to the 
> DCREPORT FORM command.
>
> HTH,
>
> Stu.
>
> On Wed, 10 Nov 2004 11:40:05 -0500, Joy <xzhang@caisoftdesign.ca> wrote:
>
>> Hello
>>
>> I am transfering clipper code to XBase, I use code line:
>> DCREPORT FORM CATL2  XBP NOEJECT NOCONSOLE FOR 
>> SUBSTR(SUBCAT_NO,1,1)=MAINCD
>> TO PRINTER WHILE inkey()!=K_ESC PRINTER @oPrinter
>>
>> After this line I have DCPRINT ?
>>
>> I always get error for any DCPRINT code line following DCREPORT CODE 
>> LINE.
>>
>> Please give me a help.
>>
>>
>
>
>
> -- 
> Stuart Fraser
> Senior Programmer / Analyst
> IBM Managed Operations
> Contracted Resource to:
> B.C. Ministry of Health
> Victoria, B.C.  Canada