Vb Script -> Print Preview Does Not Match Final Print S’abonner
I have a label with some inputs before the label is printed. For the part number entry, I have a VB script that looks at a certain character. Based on the value of a specific character, a different shared value (IP) is changed accordingly. Here is my script within the part number:
If Trim(Mid(Value,10,1)) = "S" then IP = "21" ElseIf Trim(Mid(Value,10,1)) = "E" then IP = "21" ElseIf Trim(Mid(Value,10,1)) = "F" then IP = "24" ElseIf Trim(Mid(Value,10,1)) = "T" then IP = "24" Else Format.CancelPrinting("Bad Input Data") end if
In my case, the character is "F". If I do a print preview, then IP = "24". If I perform an actual print, then IP = "21". I suspect that it may have something to do with my place-holder.
On my label, I have 123456789S as the default value, so that I know what to look for when I scan by barcode. I am actually scanning 123456789F, but my label prints IP = "21".
If I change my default value to 123456789F, the label prints IP = "24".
Why does my print preview not match what actually prints?
How can I get my input from the Prompt to over-ride my default value when the VB scrip runs?
Vous devez vous connecter pour laisser un commentaire.