Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing blank reports from preview
Message
From
20/09/2005 06:21:12
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01050188
Message ID:
01051179
Views:
11
Hi Cathy,

Thanks a lot for that. I have 4 reports where this problem happens and your suggestion of setting the "InitialSelectedAlias" property worked for 1 of them but not the others.

Thanks for that fix anyway.

>>I think you're on to something here Sergey.
>>When the report comes up in Preview the correct alias (c_incal) appears but on the printout the wrong alias (workpriv) is there.
>>In the Data Environment Init, I have the code:
>>Select c_Incal
>>Go Top
>>
>>Is there somewhere else I can put this code so that it will print the correct cursor?
>
>If you use the data environment to open the table, you don't need that code. Instead, just make sure the "InitialSelectedAlias" property of the data environment has c_Incal selected.
>
>Another thing to check is to see if you have any method or UDF calls that happen to switch the table. For example, maybe at the end of the report you try to update a "printed" flag in a table so you end up switching to a different table. Just make sure you restore the correct alias whenever you do something like this.
Previous
Reply
Map
View

Click here to load this message in the networking platform