preview and run was diffrent
Posted: Fri Sep 24, 2010 11:39 pm
when I test the [Master-Detail] demo.when I design the mrt file ,I found preview and run was diffrent.
preview is correctlly,how can it be correctlly when run it
1. add this code in print events:
if (Categories.CategoryName== "Beverages") this.DataBand2.Enabled = false;
else this.DataBand2.Enabled = true;
2. preview it,it's works ok(because of the data of "Beverages" is not show)
3 save it ,and run it in demo,it's works failed(because of the data of "Beverages" is still show)
preview is correctlly,how can it be correctlly when run it
1. add this code in print events:
if (Categories.CategoryName== "Beverages") this.DataBand2.Enabled = false;
else this.DataBand2.Enabled = true;
2. preview it,it's works ok(because of the data of "Beverages" is not show)
3 save it ,and run it in demo,it's works failed(because of the data of "Beverages" is still show)