Home > Archive > FoxPro Help and Support > December 2005 > report form to an html file









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 report form to an html file
ghj

2005-12-14, 8:26 pm

How can I run a report to an HTML file without the report listener dialog
box

When I run the command :

REPORT FORM myreport OBJECT TYPE 5

I get a dialog box and stores the filename to the clipboard. I would like to
either set the name or grab the name without the dialog. ( How can I get the
name from the clipboard)


ghj

2005-12-15, 11:24 am

To clarify:

I just need to get rid of the dialog box. Is this possible?


Thanks



"ghj" <ghj@ghj.com> wrote in message news:Ih4of.4736$tR6.1220@trndny09...
> How can I run a report to an HTML file without the report listener dialog
> box
>
> When I run the command :
>
> REPORT FORM myreport OBJECT TYPE 5
>
> I get a dialog box and stores the filename to the clipboard. I would like
> to either set the name or grab the name without the dialog. ( How can I
> get the name from the clipboard)
>
>



Jay B

2005-12-15, 1:24 pm

you need to subclass the reportlistener class and use it.

ghj wrote:
> To clarify:
>
> I just need to get rid of the dialog box. Is this possible?
>
>
> Thanks
>
>
>
> "ghj" <ghj@ghj.com> wrote in message news:Ih4of.4736$tR6.1220@trndny09...
>
>
>
>

ghj

2005-12-15, 8:26 pm

Is there any code example of how to do this. (suppress the dialog box, that
is)

I tried using this code:
oHTML = Newobject("HtmlListener","_reportlistener.vcx")

oHTML.targetFileName = lcOutputfile

oHtml.xsltParameters = CREATEOBJECT("Collection")

oHtml.xsltParameters.Add(6,"numberPrecision")

REPORT FORM myreport OBJECT oHtml

Thanks



"Jay B" <jayb@audiman.net> wrote in message
news:KEhof.36779$L7.34368@fe12.lga...[color=darkred]
> you need to subclass the reportlistener class and use it.
>
> ghj wrote:

ghj

2005-12-15, 8:26 pm

Found it - nomodalmessages - thanks


"ghj" <ghj@ghj.com> wrote in message news:YZkof.5219$057.631@trndny07...
> Is there any code example of how to do this. (suppress the dialog box,
> that is)
>
> I tried using this code:
> oHTML = Newobject("HtmlListener","_reportlistener.vcx")
>
> oHTML.targetFileName = lcOutputfile
>
> oHtml.xsltParameters = CREATEOBJECT("Collection")
>
> oHtml.xsltParameters.Add(6,"numberPrecision")
>
> REPORT FORM myreport OBJECT oHtml
>
> Thanks
>
>
>
> "Jay B" <jayb@audiman.net> wrote in message
> news:KEhof.36779$L7.34368@fe12.lga...
>



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