Click here to Skip to main content
15,919,931 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAccess VBA - Return Object From Function Pin
Kevin Marois20-Jul-17 20:13
professionalKevin Marois20-Jul-17 20:13 
SuggestionRe: Access VBA - Return Object From Function Pin
Richard MacCutchan20-Jul-17 20:37
mveRichard MacCutchan20-Jul-17 20:37 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 5:10
professionalKevin Marois21-Jul-17 5:10 
GeneralRe: Access VBA - Return Object From Function Pin
Richard MacCutchan21-Jul-17 6:11
mveRichard MacCutchan21-Jul-17 6:11 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 6:14
professionalKevin Marois21-Jul-17 6:14 
GeneralRe: Access VBA - Return Object From Function Pin
Richard MacCutchan21-Jul-17 6:34
mveRichard MacCutchan21-Jul-17 6:34 
GeneralRe: Access VBA - Return Object From Function Pin
Dave Kreskowiak21-Jul-17 7:02
mveDave Kreskowiak21-Jul-17 7:02 
GeneralRe: Access VBA - Return Object From Function Pin
Kevin Marois21-Jul-17 7:29
professionalKevin Marois21-Jul-17 7:29 
GeneralRe: Access VBA - Return Object From Function Pin
Dave Kreskowiak21-Jul-17 8:04
mveDave Kreskowiak21-Jul-17 8:04 
JokeRe: Access VBA - Return Object From Function Pin
Mycroft Holmes21-Jul-17 14:06
professionalMycroft Holmes21-Jul-17 14:06 
QuestionPrintQueue error Pin
Otekpo Emmanuel19-Jul-17 8:19
Otekpo Emmanuel19-Jul-17 8:19 
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 

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.