Advertisement
Advertisement
| 05.01.2008 at 03:19PM PDT, ID: 23370273 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: |
'''' do_iv_print() is the function called from the application
Public Sub do_iv_print()
Call iv_print_text
End Sub
'''' iv_print_text() is called from do_iv_print(). There is more
'''' to this routine but it is mostly field setting stuff and
'''' doesn't seem to have any relevance to the problem.
Private Sub iv_print_text()
Dim MyCenteredTextWidth As Double
Dim separation As Integer
Dim topMargin As Double
Dim badge_leftmargin As Double
Dim marker As Integer
Dim I As Integer ' Declare variable.
Call StartDebug
If (select_printer = "1") Then
select_printer = "2"
SetSelectPrinterOption select_printer
'' This will call the PrinterCheck routine below and this appears to
'' be where the problem arises.
PrinterCheck
End If
Call EndDebug
End Sub
Private Sub PrinterCheck()
Dim disposition As Long
Dim sKeyValue As String
Dim prThis As Printer
Dim tkeyvalue As String
On Error GoTo ErrTrap
'***********************************
If (select_printer = "2") Then
Load frmPrintSelect
'' The line below (when the form is displayed) is exactly where it
'' hangs. I am left with a form with a combo box and it doesn't
'' respond for 30 seconds to 5 minutes. After this, it will start
'' responding, i can select a printer, and it works fine.
frmPrintSelect.Show (1)
sSubKey = "Software\Infrasafe Inc.\SGPrinter\DefaultPrinter"
If RegOpenKeyEx(lMainKey, sSubKey, 0, KEY_READ, hnd) Then
If RegCreateKeyEx(lMainKey, sSubKey, 0, 0, 0, 0, 0, hnd, disposition) Then
Err.Raise 1001, "VerifySettings() Sub", "Could Not Create Registry Key"
End If
End If
sKeyValue = Space$(lLength)
RegQueryValueEx hnd, sSettingsKey, 0, REG_SZ, ByVal sKeyValue, lLength
tkeyvalue = Left$(sKeyValue, Len(Trim$(sKeyValue)) - Len(Trim$(sKeyValue)) / 2 - 1)
SetDefaultPrinter (tkeyvalue)
End If
EndSub
|