Information générale
Catégorie:
Visual FoxPro Beta
>Alejandro -
>
>Actually, I bet I know what is wrong. You will see this message:
>
>"Report Preview has not been initialized correctly."
That was it.
>if you invoke the default Preview Container's .Show() method without first calling .SetReport( ).
I did not initialize current page or pagecount, only commented the example code thinking that the defaults were 1 and 1.
>The message is being displayed because the preview does not have a report listener reference to talk to. Perhaps this message could be more informative.
>
>Normally, when the report engine/reportlistener runs the preview, it will automatically call .setReport() prior to calling .Show(). So somewhere along the line, things must have become unconnected. Your test code will help us track this down.
I thought I sent the code, but now I don't see it in the UT ?? Will send it later, my other machine has some problems.
Thanks to both of you for the help.
Alex
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement