Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the number of copies at runtime
Message
 
 
To
17/12/2004 10:43:48
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00969991
Message ID:
00970072
Views:
21
>Hi:
>
>How do I get copy# at runtine because I want to print something based on copy number.

If this is the case, you should do it in a loop, create some numeric variable and increment it in report footer (or summary) On Exit. When use this variable in your report to do your formatting.

Something like this
local lnCopyNumber as Integer, lnI as Integer, lnTotalCopies as Integer
lnCopyNumber = 1
lnTotalCopies = thisform.txtTotalCopies.value

for lnI = 1 to m.lnTotalCopies
      report form myReport to ...
next
In report you can have expression:

iif(vartype(m.lnCopyNumber)="U","Run from Dev. Environment", "Copy # " + transform(m.lnCopyNumber))

That's up from my head, not tested, but should give you an idea.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform