I am using vs2008, vb.net, and crystal reports 10.5 to develop a ticketing system. I have a web page with 3 cr viewers that print the 3 different ticket copies (as activex reports). I set a boolean switch saying the that this has printed (True). But when I go to load the next cr viewer and go to process it, the switch has reset to false and wants to print the same ticket copy again. I have the switch dimmed as "Public CustPrinted As Boolean". Down in a separate sub which is triggered with a button click, I have the following code:
If CustPrinted = False Then
PrintCustomer()' In here the CustPrinted is set to true
Else
PrintWarehouse()
End If
PrintWarehouse is never hit because CustPrinted is reset to false after I print the Customer Copy.
I would appreciate any help. This is being executed on a Intranet web server, so I can't use the crReport.PrintToPrinter(1, False, 0, 0) command.
Thanks
Cathy
If CustPrinted = False Then
PrintCustomer()' In here the CustPrinted is set to true
Else
PrintWarehouse()
End If
PrintWarehouse is never hit because CustPrinted is reset to false after I print the Customer Copy.
I would appreciate any help. This is being executed on a Intranet web server, so I can't use the crReport.PrintToPrinter(1, False, 0, 0) command.
Thanks
Cathy