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
jaymz69Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.