[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 300
  • Last Modified:

Report Listner for VFP 9

any body have any good links for a tutorial using ReportListner?

Or sample code of how they have used it?

Thanks
0
jaymz69
Asked:
jaymz69
  • 7
  • 6
1 Solution
 
pcelbaCommented:
To study all possibilities of Report listener will take several months.

You should start here:
http://www.code-magazine.com/Article.aspx?quickid=0404032

Then you may continue here:
http://fox.wikis.com/wc.dll?Wiki~ReportListener
and follow all links included.

If you would rather like something from Microsoft then here it is:
http://msdn.microsoft.com/en-us/library/ms965279.aspx
http://msdn.microsoft.com/en-us/library/ms965281.aspx
http://msdn.microsoft.com/en-us/library/ms950434(VS.80).aspx

VFP help also contains useful information and, of course, Hentzenwerke has books in stock: http://www.hentzenwerke.com/catalog/vfprw.htm
0
 
jaymz69Author Commented:
My whole thing is I have a small form for my exe
all you doo is enter a nber and it validates
if it finds a match i want it to bring all the details up in a full screen so the user can look at it and the print the report.  

Right I have to make my input form big as the screen ( which seems wowed since there is so little info on the form)
0
 
pcelbaCommented:
You may leave the main form small and maximize it before report preview. Or you may display the report in different standalone and large form. This problem is not related to Report listener.
0
[Webinar] Improve your customer journey

A positive customer journey is important in attracting and retaining business. To improve this experience, you can use Google Maps APIs to increase checkout conversions, boost user engagement, and optimize order fulfillment. Learn how in this webinar presented by Dito.

 
jaymz69Author Commented:
That is what I am looking for. The Different Stand Alone Form to Show Print Preview.

What are some helpful links on that.

0
 
pcelbaCommented:
To display report preview in standalone maximized window you may use following code:

DEFINE WINDOW WReport FROM 0,0 TO SROWS(), SCOLS() IN DESKTOP SYSTEM FLOAT CLOSE ZOOM MINIMIZE GROW
ZOOM WINDOW WReport MAX

REPORT FORM d:\path\YourReport.FRX PREVIEW WINDOW WReport

RELEASE WINDOWS WReport
0
 
jaymz69Author Commented:
Ok I got it to work on my end. That is what I was looking for ....

THANK YOU

Is there a way to get the print preview tool bar (Close and Print ) to be with it?

Or Even add the bottons ?

Thanks again

0
 
pcelbaCommented:
The toolbar is inside the main VFP window and I don't know how to place it into report preview window just now.

If you place some buttons to the preview window and place commands described here to button's click methods: http://www.tek-tips.com/faqs.cfm?fid=4480  then it should work.
0
 
jaymz69Author Commented:
I would some how need to when creating the windo create the button object(s) to it...?
0
 
pcelbaCommented:
Now it seems it is easier to maximize the application form before the report preview instead of the separate window - the toolbar will be on top in such case.
0
 
jaymz69Author Commented:
this is wierd, to me...

After I print from the Windos dialog prompt my form has the report on the form...

see the attachment

before and after look
before-after.doc
0
 
pcelbaCommented:
I think you need NOCONSOLE keyword in REPORT FORM command.
0
 
jaymz69Author Commented:
your right.

noconsole window myReport
0
 
jaymz69Author Commented:
I ment at this line of code:

Report Form manifest.FRX To Printer PROMPT NOCONSOLE
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 7
  • 6
Tackle projects and never again get stuck behind a technical roadblock.
Join Now