Click here to Skip to main content
15,890,123 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionNeed Help! Pin
ShayanTanwir14-Jan-09 7:07
ShayanTanwir14-Jan-09 7:07 
AnswerRe: Need Help! Pin
EliottA14-Jan-09 7:20
EliottA14-Jan-09 7:20 
AnswerRe: Need Help! Pin
Jon_Boy14-Jan-09 7:25
Jon_Boy14-Jan-09 7:25 
AnswerRe: Need Help! Pin
Henry Minute14-Jan-09 13:35
Henry Minute14-Jan-09 13:35 
QuestionVideo.ShowCursor...Is it possible to show the cursor in fullscreen mode using dX.AudioVideoPlayback? Pin
rspercy6514-Jan-09 7:02
rspercy6514-Jan-09 7:02 
QuestionSystem.AccessViolationException from external DLL Pin
Anita Fourie14-Jan-09 1:03
Anita Fourie14-Jan-09 1:03 
AnswerRe: System.AccessViolationException from external DLL Pin
Tom Deketelaere14-Jan-09 1:27
professionalTom Deketelaere14-Jan-09 1:27 
QuestionAn Error Message Come When Printing with OPOS Printer Pin
pdnet14-Jan-09 0:28
pdnet14-Jan-09 0:28 
Hello All,

I am going to Print some File from my application. But I am facing some Problems.

some times an error message is comming :

---------------------------
SOTHER~1
---------------------------
Object is not connected to server
---------------------------
OK
---------------------------

but there is no problem in Printing, its working fine, but the message box is coming again when going to print next file.

My Code is below :
----------------------

For i = 0 To files.Count - 1
Try
POSEx = New PosExplorer
PrintFileName = files.Item(i)
fileData = My.Computer.FileSystem.GetFileInfo(PrintFileName)
fileContents = My.Computer.FileSystem.ReadAllText(PrintFileName)
If InStr(fileData.Name, ".") > 0 Then
PrinterName = (fileData.Name).Split(".")(0)
If PrinterName <> DupPrinterName Then
SetDeviceVariable(PrinterName)
End If
DupPrinterName = PrinterName
End If
device = POSEx.GetDevice(DeviceType.PosPrinter, PrinterName)
If Not device Is Nothing Then

Printer = POSEx.CreateInstance(device)
Printer.Open()
Printer.Claim(1000)
Printer.DeviceEnabled = True
Printer.PrintNormal(2, fileContents)
If bCutPaper = True Then
Printer.CutPaper(0)
End If

Printer.DeviceEnabled = False
Printer.Release()
Printer.Close()
System.IO.File.Delete(PrintFileName)
End If
Catch ex As PosControlException
End Try
Next


Note: My Printing Function written in a separate Thread and it always searches is there any files in my application folder or not.


So, How can I fixed this Prolem.

Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)

AnswerRe: An Error Message Come When Printing with OPOS Printer Pin
Dave Kreskowiak15-Jan-09 4:18
mveDave Kreskowiak15-Jan-09 4:18 
GeneralRe: An Error Message Come When Printing with OPOS Printer Pin
pdnet16-Jan-09 22:32
pdnet16-Jan-09 22:32 
GeneralRe: An Error Message Come When Printing with OPOS Printer Pin
Dave Kreskowiak17-Jan-09 1:58
mveDave Kreskowiak17-Jan-09 1:58 
QuestionGet Longitude and latitude Pin
Rupesh Kumar Swami14-Jan-09 0:28
Rupesh Kumar Swami14-Jan-09 0:28 
AnswerRe: Get Longitude and latitude Pin
Colin Angus Mackay14-Jan-09 0:47
Colin Angus Mackay14-Jan-09 0:47 
GeneralRe: Get Longitude and latitude Pin
Rupesh Kumar Swami14-Jan-09 0:59
Rupesh Kumar Swami14-Jan-09 0:59 
GeneralRe: Get Longitude and latitude Pin
Guffa14-Jan-09 5:32
Guffa14-Jan-09 5:32 
GeneralRe: Get Longitude and latitude Pin
Steven J Jowett14-Jan-09 23:12
Steven J Jowett14-Jan-09 23:12 
GeneralRe: Get Longitude and latitude Pin
Colin Angus Mackay14-Jan-09 23:28
Colin Angus Mackay14-Jan-09 23:28 
GeneralRe: Get Longitude and latitude Pin
Steven J Jowett14-Jan-09 23:41
Steven J Jowett14-Jan-09 23:41 
GeneralRe: Get Longitude and latitude Pin
Colin Angus Mackay15-Jan-09 14:07
Colin Angus Mackay15-Jan-09 14:07 
QuestionCan VB.Net make a 32 bit console-based command line executable for Windows Pin
arslanjatt13-Jan-09 20:52
arslanjatt13-Jan-09 20:52 
AnswerRe: Can VB.Net make a 32 bit console-based command line executable for Windows Pin
Colin Angus Mackay14-Jan-09 0:48
Colin Angus Mackay14-Jan-09 0:48 
AnswerRe: Can VB.Net make a 32 bit console-based command line executable for Windows Pin
Brian W King14-Jan-09 2:43
Brian W King14-Jan-09 2:43 
AnswerRe: Can VB.Net make a 32 bit console-based command line executable for Windows Pin
Eddy Vluggen14-Jan-09 3:26
professionalEddy Vluggen14-Jan-09 3:26 
QuestionHow can I get selected value from crystal report Pin
Ali 11013-Jan-09 20:02
Ali 11013-Jan-09 20:02 
AnswerRe: How can I get selected value from crystal report --&gt; CROSS POST Pin
Tom Deketelaere13-Jan-09 22:01
professionalTom Deketelaere13-Jan-09 22:01 

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.