Click here to Skip to main content
15,894,312 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: Crystal Report Direct Print Pin
thatraja22-Jan-10 2:39
professionalthatraja22-Jan-10 2:39 
GeneralRe: Crystal Report Direct Print Pin
Girish_Sharma23-Jan-10 1:06
Girish_Sharma23-Jan-10 1:06 
GeneralRe: Crystal Report Direct Print Pin
thatraja23-Jan-10 6:43
professionalthatraja23-Jan-10 6:43 
GeneralRe: Crystal Report Direct Print Pin
Girish_Sharma24-Jan-10 17:13
Girish_Sharma24-Jan-10 17:13 
GeneralRe: Crystal Report Direct Print Pin
thatraja24-Jan-10 21:25
professionalthatraja24-Jan-10 21:25 
GeneralRe: Crystal Report Direct Print Pin
Girish_Sharma24-Jan-10 22:08
Girish_Sharma24-Jan-10 22:08 
GeneralRe: Crystal Report Direct Print Pin
thatraja25-Jan-10 8:46
professionalthatraja25-Jan-10 8:46 
GeneralRe: Crystal Report Direct Print Pin
Girish_Sharma26-Jan-10 18:50
Girish_Sharma26-Jan-10 18:50 
Thank you for your replies. Yes now object error has been removed; but now i am getting further error :

Dim host As New System.Net.IPHostEntry
host = System.Net.Dns.GetHostEntry(Context.Request.ServerVariables("REMOTE_HOST"))
Dim strSystemName As String = host.HostName
Dim strPrinterName As String = "Generic / Text Only"
TextBox1.Text = strSystemName 'Here i am getting 127.0.0.1 not \\mymachine name as you said i.e. \\RAJA In my case it should be \\GIRISH (as this machine where i am using) or on another client machine it should be that client machine's name.
rptprint.PrintOptions.PrinterName = strSystemName + "\\" + strPrinterName
rptprint.PrintToPrinter(1, False, 0, 0)

So, i am getting error : (A new error windows pop up)
COMException was unhandled by user code

Invalid printer specified.

Troubleshooting tips:
Check the ErrorCode property of the exception to determine the HRESULT returned by the COM object.

Get general help for this exception.

Regards
Girish Sharma
GeneralRe: Crystal Report Direct Print Pin
thatraja1-Feb-10 21:40
professionalthatraja1-Feb-10 21:40 
GeneralRe: Crystal Report Direct Print Pin
shrikant.kudlur6-Apr-11 19:27
shrikant.kudlur6-Apr-11 19:27 
AnswerRe: Crystal Report Direct Print Pin
thatraja6-Apr-11 22:49
professionalthatraja6-Apr-11 22:49 
GeneralRe: Crystal Report Direct Print Pin
shrikant.kudlur10-Apr-11 20:18
shrikant.kudlur10-Apr-11 20:18 
AnswerRe: Crystal Report Direct Print Pin
thatraja11-Apr-11 5:17
professionalthatraja11-Apr-11 5:17 
GeneralRe: Crystal Report Direct Print Pin
shrikant.kudlur18-Apr-11 18:57
shrikant.kudlur18-Apr-11 18:57 
GeneralRe: Crystal Report Direct Print Pin
thatraja18-Apr-11 21:39
professionalthatraja18-Apr-11 21:39 
Questionauto complete feature Pin
chakran22-Jan-10 0:36
chakran22-Jan-10 0:36 
Questionlogin Pin
arkiboys22-Jan-10 0:30
arkiboys22-Jan-10 0:30 
AnswerRe: login Pin
Prosanta Kundu online22-Jan-10 0:41
Prosanta Kundu online22-Jan-10 0:41 
Questionhow to access textboxid dynamically Pin
vbmadhavi21-Jan-10 23:14
vbmadhavi21-Jan-10 23:14 
AnswerRe: how to access textboxid dynamically Pin
Prosanta Kundu online22-Jan-10 0:37
Prosanta Kundu online22-Jan-10 0:37 
Questionweb service error Pin
iamdking21-Jan-10 22:02
iamdking21-Jan-10 22:02 
AnswerRe: web service error Pin
SeMartens21-Jan-10 22:21
SeMartens21-Jan-10 22:21 
GeneralRe: web service error Pin
iamdking21-Jan-10 22:30
iamdking21-Jan-10 22:30 
QuestionHide and Show Buttons on the Clients Side Pin
Vimalsoft(Pty) Ltd21-Jan-10 21:45
professionalVimalsoft(Pty) Ltd21-Jan-10 21:45 
AnswerRe: Hide and Show Buttons on the Clients Side Pin
Dinesh Mani21-Jan-10 22:05
Dinesh Mani21-Jan-10 22:05 

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.