Hi,
In our application referencing the Jiwa COM objects, we used to print pickslips when loading sales orders into Jiwa 6.5.
We would look for the printers by doing the following:
First we would create our database and log on, load our sales order in, etc.
MyDatabase = New JiwaODBC.database
With MyDatabase
.UseConnectionScrollCursor = True
.UseConnectionWriteData = True
.UseConnectionReadData1 = True
.UseConnectionReadData2 = True
.UseConnectionReadData3 = True
End With
.. extra log on code ..
Then later, when we were ready to print we would look through the printers via the systemprofile to find the one we wanted and printed from it.
Dim pr As New JiwaPrintReport.clsJiwaPrintReport
pr.Database = MyDatabase
pr.SystemProfile.Load(MyDatabase.IniFile)
Dim myprinter As clsLogicalPrinter = Nothing
For Each printer As clsLogicalPrinter In pr.SystemProfile.LogicalPrinters
…do printing
The issue we have is, now if Jiwa 7, we are logging on to the database using the code:
JiwaApplication.Manager.Instance.Logon(ServerName, DatabaseName, JiwaFinancials.Jiwa.JiwaODBC.database.AuthenticationModes.JiwaAuthentication, jiwaUserName, jiwaUserPassword)
Which leaves us with no MyDatabase or systemprofile, which is what we were using to find the printers.
How can we find a collection of the printers using the JiwaApplication object? Is there a new way we should be triggering a print from Jiwa 7?


