PDA

View Full Version : Report is blank when opened. Print preview ok. Print ok



fabio2012
04-25-2012, 01:18 PM
Friends, I have a report with eight subs. I was trying not to show empty sub, and in subreport also part white.

Resolved, but to place it can shrink and can expand,
for all sections of all subreports also placed time zero for all subreports.
In the event when loading the subreport I repeat this code for each sub:
Then if Me.Filho0.Report.HasData
Me.Filho0.Visible = True
else
Me.Filho0.Visible = False
end If
In the event if you are not given for each sub I put:
cancel = True
As I open the report it is all empty, but when I print, it prints perfectly, if the sub is no data, shows
and also the sub fully expand.
Only when I open'm not seeing anything.
Thank you.

HiTechCoach
04-26-2012, 03:16 PM
I think that this is relate to this previous post:

http://windowssecrets.com/forums/showthread.php/145907-not-print-blank-pages-when-subreport?p=850889#post850889

HiTechCoach
04-26-2012, 03:47 PM
After looking at eh datasbe attached to the otehr thres ths iisue appears to be with Report View mode. It ignores the can grow can shrink properties.

I also turned off the Page Header/Footer for each sub report. It will now preview/print properly. The Report view still ignores the Can Grow/Can Shrink.

fabio2012
04-28-2012, 08:43 AM
HiTechCoach, I will repeat here what I wrote in another forum:

thank you for your help, Sorry for being slow to respond, I was without internet.

I was able to partially resolve. I put a button on the form to open the report.

Thus, it opens directly in Print Preview, subreports showing correctly and also printing correctly.

Still, if possible, send me what you got, if you can not the forum, send the dropbox.

Again, thank you.