Click here to Skip to main content
15,887,267 members
Home / Discussions / Visual Basic
   

Visual Basic

 
AnswerRe: PrintQueue error Pin
Richard Deeming19-Jul-17 9:06
mveRichard Deeming19-Jul-17 9:06 
GeneralRe: PrintQueue error Pin
Otekpo Emmanuel19-Jul-17 10:35
Otekpo Emmanuel19-Jul-17 10:35 
GeneralRe: PrintQueue error Pin
Richard Deeming19-Jul-17 11:14
mveRichard Deeming19-Jul-17 11:14 
QuestionStoring DICOM files into MSSQLSERVER database Pin
Member 1240668218-Jul-17 7:14
Member 1240668218-Jul-17 7:14 
AnswerRe: Storing DICOM files into MSSQLSERVER database Pin
Eddy Vluggen18-Jul-17 7:28
professionalEddy Vluggen18-Jul-17 7:28 
AnswerRe: Storing DICOM files into MSSQLSERVER database Pin
Dave Kreskowiak18-Jul-17 7:29
mveDave Kreskowiak18-Jul-17 7:29 
Questionvb.net 2010 error 'Microsoft.ACE.OLEDB.12.0' provider is not registered Pin
dcof14-Jul-17 5:38
dcof14-Jul-17 5:38 
QuestionArabic printing on RAW printer (Receipt printer or small 40 column printer) Pin
chandrahas.k7-Jul-17 9:53
chandrahas.k7-Jul-17 9:53 
Please help me when I m printing through following codes it prints in Chinese instead of Arabic

=======================================
'Print heading line.
With .Font
     .Name = "Arial Unicode MS"
     .Size = 11
     .Underline = False
End With
        

.PrintLine Utf8BytesFromString(TextLine) 'Join$(ParseCSV(TextLine), vbTab)

=============================
Private Declare Function WideCharToMultiByte Lib "kernel32" ( _
    ByVal CodePage As Long, _
    ByVal dwFlags As Long, _
    ByVal lpWideCharStr As Long, _
    ByVal cchWideChar As Long, _
    ByVal lpMultiByteStr As Long, _
    ByVal cbMultiByte As Long, _
    ByVal lpDefaultChar As Long, _
    ByVal lpUsedDefaultChar As Long) As Long
    
' CodePage constant for UTF-8
Private Const CP_UTF8 = 65001

''' Return byte array with VBA "Unicode" string encoded in UTF-8
Public Function Utf8BytesFromString(strInput As String) As Byte()
    Dim nBytes As Long
    Dim abBuffer() As Byte
    ' Get length in bytes *including* terminating null
    nBytes = WideCharToMultiByte(CP_UTF8, 0&, ByVal StrPtr(strInput), -1, vbNull, 0&, 0&, 0&)
    ' We don't want the terminating null in our byte array, so ask for `nBytes-1` bytes
    ReDim abBuffer(nBytes - 2)  ' NB ReDim with one less byte than you need
    nBytes = WideCharToMultiByte(CP_UTF8, 0&, ByVal StrPtr(strInput), -1, ByVal VarPtr(abBuffer(0)), nBytes - 1, 0&, 0&)
    Utf8BytesFromString = abBuffer
End Function

AnswerRe: Arabic printing on RAW printer (Receipt printer or small 40 column printer) Pin
Dave Kreskowiak8-Jul-17 14:24
mveDave Kreskowiak8-Jul-17 14:24 
Questionlistviewgroup troubels Pin
JR2126-Jul-17 20:57
JR2126-Jul-17 20:57 
AnswerRe: listviewgroup troubels Pin
JR2126-Jul-17 21:46
JR2126-Jul-17 21:46 
QuestionHow to clear or reset cookie values in vb.net Pin
Sandeep Vemulapalli6-Jul-17 10:46
Sandeep Vemulapalli6-Jul-17 10:46 
AnswerRe: How to clear or reset cookie values in vb.net Pin
Gunaseelan K27-Jul-17 20:30
Gunaseelan K27-Jul-17 20:30 
QuestionError Pin
Member 132899082-Jul-17 22:02
Member 132899082-Jul-17 22:02 
AnswerRe: Error Pin
Richard Deeming3-Jul-17 1:42
mveRichard Deeming3-Jul-17 1:42 
GeneralRe: Error Pin
Member 132899083-Jul-17 7:12
Member 132899083-Jul-17 7:12 
GeneralRe: Error Pin
Richard Deeming3-Jul-17 7:36
mveRichard Deeming3-Jul-17 7:36 
QuestionError with large byte arrays in VB6 Pin
Member 1328661130-Jun-17 1:28
Member 1328661130-Jun-17 1:28 
AnswerRe: Error with large byte arrays in VB6 Pin
Eddy Vluggen30-Jun-17 1:55
professionalEddy Vluggen30-Jun-17 1:55 
SuggestionRe: Error with large byte arrays in VB6 Pin
Richard Deeming30-Jun-17 1:57
mveRichard Deeming30-Jun-17 1:57 
Questionhow to add check box in datagrid in VB 6.0 Pin
Nelson Dsilva28-Jun-17 9:35
Nelson Dsilva28-Jun-17 9:35 
AnswerRe: how to add check box in datagrid in VB 6.0 Pin
Eddy Vluggen28-Jun-17 23:12
professionalEddy Vluggen28-Jun-17 23:12 
QuestionCoding a simple grade system Pin
Member 1326288119-Jun-17 20:08
Member 1326288119-Jun-17 20:08 
AnswerRe: Coding a simple grade system Pin
Richard MacCutchan19-Jun-17 21:09
mveRichard MacCutchan19-Jun-17 21:09 
QuestionVisual Studio 2010 crashes after latest Windows 10 Update Pin
Member 811464319-Jun-17 2:31
Member 811464319-Jun-17 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.