|
Abhiroop,
It's great not to have physical modems connected to your pc, pero esperano por unas secundos mas, por favor. Que bueno esta. En realidad.
|
|
|
|
|
Ola,
Pero, que tal??? Que vamo con usted??? Bien. Pero necisito ir de aqui.
Lo siento por siento.
Troy
|
|
|
|
|
Hi,
How to open a removable drive window with all the folders whn we click a button of a windows form using c#.net.
Thanks and Regards
Ch.Gayatri
|
|
|
|
|
Look at the Process class and just launch the command line "EXPLORER.EXE driveSpec:". For example "EXPLORER.EXE C:".
|
|
|
|
|
Hi,
Thanks for your respond.
It will allows other drive to open but i need only removable drive to open.
Thanks and Regards
Ch.Gai3
|
|
|
|
|
Hi,
have a look at the DriveInfo class.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
So, you want an Explorer window with access only to the removable drive?? Cna't do it. Explorer gives you access just like you opened My Computer. You'd have to write your own version of an Explorer window with just the functionality you want.
|
|
|
|
|
|
i develop an embedded XP image and deploy on the target computer, I want to install VC6 based application which gives problem(NOT A VALID WIN32 APPLICATION) while installation please anyone on this forun help me to fix this problem.
kkkljj
|
|
|
|
|
It would appear that your installer is corrupted, or the .EXE it installed is corrupted.
|
|
|
|
|
No my installer in not currupted. it is ok,it seems that some component is missing in image of Embedded XP. but i dont know which one???
kkkljj
|
|
|
|
|
Did you install the VC6 runtime??
|
|
|
|
|
Hi,
m getting problem whil e doin this task.m able to detect the person who wants the job to print after goin to prit spool.but m not able to detect the person before going to the printspool.whenever a person click the print option of any document it should displayour dialog instead of print dialog if valid it will goes to the print dialog to printthe job. plz help me.
How i will design a a form in windows service to print a document.
|
|
|
|
|
manjari kar wrote: who click the print option in any document
When you say click the print option, what application are you talking about.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
suppose in ms word or in notepad or in pdf file if a person wants to print that document and goes to click the print option in file menu ,thattime instead of print dialog pop up our application should display with username and password.after validating it goes for print.means before goin to print spool the job should detected,if valid then it wil print.othewise block.plz help me.
How i will design a a form in windows service to print a document.
|
|
|
|
|
So you want to interupt the call to the print dialog in any application, think about what you are asking, try and imagine how that could be achieved. Break the job down into small steps:
Create an application that monitors all acitve applications on the current PC
Identify every print option in every application the user may be running.
Identify when a user clicks or hot keys a print option.
You may now begin to get an idea that this is beyond your skills. It is certainly beyond mine. I suspect the reason you have not got any responses is that most people read you request, shake their head and mutter idiot before moving on, I should have!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
yes,
u got my point.now plz helpme and give me the right path.
my code is like this.and in this code after print dialog when a person clicks ok then my dialog is comming and asking for username and password.means m able to block the job after going to the print spool.help me that how i will detect before going to the print spool.
private void timer1_Tick(object sender, EventArgs e)
{
PrintServer myPrintServer = new PrintServer(@"HP LaserJet P2010 Series PCL 5e");
PrintQueueCollection myPrintQueues = myPrintServer.GetPrintQueues();
foreach (PrintQueue pq in myPrintQueues)
{
pq.Refresh();
PrintJobInfoCollection jobs = pq.GetPrintJobInfoCollection();
foreach (PrintSystemJobInfo job in jobs)
{
if (job.Submitter == "gyana.manjarikar")
{
job.Pause();
}
if (true)
{
//MessageBox.Show(job.Name.ToString());
this.Show();
}
else
this.Hide();
}
}
}
private void btnlogin_Click(object sender, EventArgs e)
{
int copies=10;
this.Opacity = 50;
PrintServer myPrintServer = new PrintServer(@"HP LaserJet P2010 Series PCL 5e");
PrintQueueCollection myPrintQueues = myPrintServer.GetPrintQueues();
foreach (PrintQueue pq in myPrintQueues)
{
pq.Refresh();
PrintJobInfoCollection jobs = pq.GetPrintJobInfoCollection();
foreach (PrintSystemJobInfo job in jobs)
{
//if (txtUserName.Text == "aaa" && txtPassword.Text == "bbb" && copies <= 10)
//{
// job.Restart();
//}
if (job.Submitter == "gyana.manjarikar")
{
if (txtUserName.Text == "aa" && txtPassword.Text == "bb" && copies <= 10)
{
timer1.Dispose();
job.Resume();
this.Hide();
}
else
{
lblErrormsg.Text = "Invalid UserName Or Password";
}
}
else
{
this.Show();
timer1.Start();
lblErrormsg.Visible = true;
lblErrormsg.Text = "Invalid User";
}
//if (job.Submitter == "")
//{
// job.Pause();
//}
//else
//{
// lblErrormsg.Visible = true;
// lblErrormsg.Text = "Invalid User";
//}
//if ( txtUserName.Text == "aa" && txtPassword.Text == "bb" )
//{
// job.Pause();
//}
//else
//{
// lblErrormsg.Visible = true;
// lblErrormsg.Text = "Invalid User";
//}
}
}
}
private void btncancel_Click(object sender, EventArgs e)
{
this.Opacity = 50;
this.Hide();
PrintServer myPrintServer = new PrintServer(@"HP LaserJet P2010 Series PCL 5e");
PrintQueueCollection myPrintQueues = myPrintServer.GetPrintQueues();
foreach (PrintQueue pq in myPrintQueues)
{
pq.Refresh();
PrintJobInfoCollection jobs = pq.GetPrintJobInfoCollection();
foreach (PrintSystemJobInfo job in jobs)
{
if (job.Submitter == "gyana.manjarikar")
{
job.Cancel();
}
}// end for each print job
}
}
private void Form1_Load(object sender, EventArgs e)
{
this.Opacity =100;
}
}
}
plz help me that where i will change the code and what i will change .
How i will design a a form in windows service to print a document.
|
|
|
|
|
All right, I tried to make it simple for you, I pointed out that I have no idea how you are going to achieve this and even called you an idiot for attempting it. And still you come back, this time with code. This proves you are not a troll, it does not change the fact that this is a stupid requirement.
I won't help you as I have better things to do, theres an ant crawling up the wall, that will be more interesting than debating this idiotic subject with you.
Good luck pal, you're going to need it!
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I recommend either McAfee or John's kerosene.
Luc Pattyn [Forum Guidelines] [My Articles]
The quality and detail of your question reflects on the effectiveness of the help you are likely to get.
Show formatted code inside PRE tags, and give clear symptoms when describing a problem.
|
|
|
|
|
You're not going to be able to do this using all-.NET code. I don't know the specifics of how to do it, but you're going to have to basically replace the system's print dialog to do what you want. This is FAR from a trivial task. You'll need very advanced knowledge of Windows internals and COM programming, along with some C++.
Why? Because Windows Security does not have any facilities in it to do what you want. Assigning a seperate password to a resource is a very inefficient method of trying to protect that resource. Personally, I think you're wasting your time trying to do this. Windows Security is made in such a way that users have a single sign-on and don't have to worry about "yet another password" to remember to access any resource. The permissions to users and groups of users are assigned to the user based on their login token, this includes accessing shared devices such as printers.
Your current method does not stop a print job from running. Since the job is already being spooled when your code figures out it is there, the print job has already started happening. The only thing you can do is pause the printer, which pauses ALL print jobs going to it, even the ones by other users who have supposedly put in the proper password. This is easily defeated because the user can just resume the printer to get around your password.
|
|
|
|
|
thanks lot for ur great response.i will try to do.
How i will design a a form in windows service to print a document.
|
|
|
|
|
manjari kar wrote: How i will design a a form in windows service
You don't. Services should not expose a user interface.
|
|
|
|
|
any ways can i customise the print dialog of the system,means i want to replace comdlg32.dll to system 32 or win 32.by invoking.or if any other method to overriding comdlg32.dll then plz tell me.nw for this requirement i m thinking to customise the stanard print dialog .so how i will do.plz help me.
How i will design a a form in windows service to print a document.
|
|
|
|
|
manjari kar wrote: i want to replace comdlg32.dll
You can't do that. The next time anyone installs a piece of software or MS releases a patch, it'll overwrite or replace what you put in.
manjari kar wrote: any ways can i customise the print dialog of the system
Again, the answer does not change. I've already given you the list of skills required to replace the dialog AND/OR alter the existing one. This is an extremely advanced topic, not for beginners.
|
|
|
|
|
see,in comdlg32.dll-1538-1033-print dialog pop up is comming.i inserted there controls for username and password in no of copies panel.i installed the resource hacker which used to customise the dialogs of comdlg32.dll.then i used one software for disable the windows file protection ,used inuse for replacing the customise comdlg32.dll and used move on boot for reboot.but it didnt replce the dll.tell me the process how to customise the windows xp print dialog.plz help me in any ways.This requirement is mandatory for me.help me.
How i will design a a form in windows service to print a document.
|
|
|
|