Printing Loop
MrStone
Forums
Hello from Germany,
my question, I hope it is in the right Forum here, is as follows:
I have a number of databases that I want to print. I have a script for the first one of them (shown below) and now I want to do a loop, that prints all the data from 1 to 46 without changing the skript for every database.
Sub Main
Call PrintDatabase() ´Datei anhängen1.IMD
End Sub
Function PrintDatabase
Set db=Client.OpenDatabase("Dateien anhängen1.IMD")
db.Print
End Function
Thanks for your help.
Hello MrStone and welcome to
Hello MrStone and welcome to the site.
You could do something like this. This script assumes you are printing all your files in the project folder. If this is not the case you will have to adjust the array to hold the names of the items you do want printed.