Click here to Skip to main content
15,892,298 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Pop up or model dialgue for aspx page Pin
Not Active22-Jan-10 11:09
mentorNot Active22-Jan-10 11:09 
QuestionHTML table in Ajax tab control Pin
Rock Star.22-Jan-10 4:24
Rock Star.22-Jan-10 4:24 
QuestionCrystal Report Direct Print Pin
Girish_Sharma22-Jan-10 1:29
Girish_Sharma22-Jan-10 1:29 
AnswerRe: Crystal Report Direct Print Pin
thatraja22-Jan-10 2:12
professionalthatraja22-Jan-10 2:12 
GeneralRe: Crystal Report Direct Print Pin
Girish_Sharma22-Jan-10 2:27
Girish_Sharma22-Jan-10 2:27 
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 
|wrote
|i am getting error "Object reference not set to an instance of an object."
This error always raise when creating instance, so confirm that, but your code looks like right one. Before checking these things make sure if the Dataset ods is not null.
|wrote
it is not returning me the correct default printer name
Because these codes are executing in server so you can't get the client machine printer name. So your server machine's default printer name will be displayed in the textbox1. Confirm that. So you can get DefaultPrinter only on server machine using this code.
|wrote
direct print using crystal report on clicking of a button on client's line matrix / dot matrix printer
use the code which i gave you,
System.Net.IPHostEntry host;
host = System.Net.Dns.GetHostEntry(Context.Request.ServerVariables["REMOTE_HOST"]);
string strSystemName = host.HostName;//You will get client machine name like \\RAJA
string strPrinterName = "Generic / Text Only";//Mention here your client machine default printer
rptPrint.PrintOptions.PrinterName = strSystemName + "\\" + strPrinterName;
The above code must be run with out fail. Actually i gave you my running code which is using for my clients. I'm not using Oracle, otherwise i'll test your code & make full solution to you, actually i'm using SQL 2005. try my steps & then let me know your feedback.
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 
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 

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.