A Problem From Vb Script Show Error
When I use Web to do "btFormat.ExportPrintPreviewToFile()" can't preview to jpg file.
History Explorer show Error msg : OnProcessData(Line 7): : type does not match: 'DateValue'
But on Bartender Print Preview & Print is normal.
VB Scripting:
Value = "20160510"
If Value = "" Then
Value = ""
Else
MyDay = DateValue(Mid(Value,1,4)+"/"+ Mid(Value,5,2)+"/"+Mid(Value,7,2))
W0 = DatePart("WW", MyDay) ' W
W1 = string(2-len(W0),"0") & W0 ' ww
Y0 = DatePart("YYYY", MyDay) ' yyyy
Y1 = Mid(Value,3,2) ' yy
Y2 = Right(Y0, 1) ' y
Q0 = DatePart("Q", MyDay) ' Q
M0 = DatePart("M", MyDay) ' M
M1 = Mid(Value,5,2) ' MM
D0 = DatePart("D", MyDay) ' d
D1 = Mid(Value,7,2) ' dd
Value = Y0&"/"&M1&"/"&D1
End If
-
Value = "20160510"
Where does "20160510" come from? I assume it is enumerated somewhere and not "hardcoded" like this? Are you sure it is in the same format in BarTender and on... "Web"?
0
Please sign in to leave a comment.
Comments
1 comment