Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report preview form flashes

Status
Not open for further replies.

KoenPiller

Programmer
Apr 4, 2001
270
NL
Hi,

Consider following statement in myMenu Printing Bar
Code:
REPO FORM myReport NOCONSOLE TO PRINTER PROMPT PREVIEW
This works fine as expected

Now in MyForm btnPrinting Click Event

REPO FORM myReport NOCONSOLE TO PRINTER PROMPT PREVIEW

And only the preview flashes.

In case I change and delete the prompt preview parameter in Menu the report is printed instantly, in MyForm etc I will get just a blank page.

Needles to say that in both cases the myTable recount()>0

Anybody who could give me a clue to this basic error where to look for the error?

Thanks,


Koen
 
Hi Koen,

I don't think you need the NOCONSOLE.

REPO FORM myReport TO PRINTER PROMPT PREVIEW

Regards,

Mike
 
Hi Mike,

No effect, with or without NOCONSOLE

Still flashing only.

Koen
 
Hi Koen,

Just a guess - if you're running the report twice the table may be at EOF on the second pass.

Jim
 
Hi Jim,
also that is not the case, I have rebooted and worked the other way around, still flashing only...
This is driving me mad.
Koen
 
Are you using private data session in your form?
 

Keon

This normally suggests you have an empty table currently selected when you run your report. I suggest fro debugging purposes, to put
Code:
lcTable = ALIAS()
messagebox(lcTable)
SELECT (lcTable)
BROWSE 
REPORT FORM....

If you end up with the wrong table, reselect the right one just before you run your report.. You might also remove any table that might be in the Dataenviroment of your report that might "confuse" the report.

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
HI

If the form is a top level form and you have used the SCREEN=OFF or equivalent settings, the preview window will not showup. Preview needs the screen on.

SO just try in your command..

_screen.Visible = .t.
REPO FORM myReport NOCONSOLE TO PRINTER PROMPT PREVIEW
.. whatever....
_screen.visible = .f. && if needed.

:)



____________________________________________
ramani - (Subramanian.G) :)
 
Hi,
Mr. Soko: I am not using private data session
Mike: Table is full, had checked already in debugger with recc(), also your system shows a fine browse.
Ramani: ShowWindow property is 1 - In-TopLevel Form.

Please note the Preview flashes, I dont seem to be able to stop but believe I can see a first page full of data (it is a multiple page list/report)
What is even more frustrating this report is a member of 5 different reports all to be activated either from a bar of my menu or from a form. 4 working beautiful, 1 flashes only when activated through the form.

It works under VFP6.0 SP2.

Koen
 
Hi Koen,

Try it this way.
Code:
REPORT FORM myReport PREVIEW IN SCREEN TO PRINTER PROMPT
REPORT FORM myReport PREVIEW TO PRINTER PROMPT

Regards,

Mike
 
Hi,

Mike also that's not the solution.
Meanwhile, this is taking to much time. So I decided to erase everything and reprogrammed form/report/menu and now it works, will never know what was my mistake.....

Thanks for support.

Koen
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top