Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Accessing the Print Button in the Report Preview Functio
Message
From
12/08/2002 16:39:56
 
 
To
12/08/2002 16:17:56
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00688386
Message ID:
00688847
Views:
13
This message has been marked as a message which has helped to the initial question of the thread.
Carmen,

You should be able to put the code in a method of the form that runs the report, and call it like below from the report. Whether or not that is the best solution for you, I don't know :)


>>Hi Sergey
> Can the code for assigning the invoice number be stored in a method on the current form, or can it be stored with the report, or is it standalone code that is part of the project, the reason I'm asking is that the form from which the invoice report is printed has to know the invoice number to include it in the A/R entries which occur after the invoice has been printed.
>
>Regards,
>Carmen
>
>Not directly but you can call your function that assigns invoce number from the Title band "On Entry".
* Report Title band On Entry.
>>WEXISTS("Printing...") AND thisform.AssignInvoiceNumber()
>>...
>>Function AssignInvoiceNumber()
>>* Generate/get invoice number
>>...
>>RETURN .T.
Steve Gibson
Previous
Reply
Map
View

Click here to load this message in the networking platform