i hard dependency injection can be implemented like constructor injection, getter/setter injection, service locator. i just know the term but not well familiar how to implement it writing code. so anyone can redirect me to good starter article on dependency injection implementation with many ways like constructor injection, getter/setter injection, service locator etc. thanks
I have no idea, but you do have a browser on your computer, right?
Then follow these steps and you will find the answer.
1. Start your browser.
2. Select your favorite search engine, like Google or Bing or whatever.
3. Copy this string "block USB ports linux" into the search field.
4. Press Enter or click the search button.
5. Select one of the links that will appear.
6. Read about the subject.
7. Solve the problem.
I am having a no of word files .Each word file have some common heading.I want to retrieve the content under the common heading from all files.
For example for a no of resumes have the same heading like objective,qualification etc.I want to list the content under these particular heading using c#
Here is my code. I Get the printticket from print job. I Need Printjob informations like copycount, media size, media type, duplex printing and other details. But I can default values from the printticket like copycount is always 1 and sometime no. of pages in job also comes 0. Now struggle with this problem. I Need Help to solve this problem.
PrintServer myPrintServer = new PrintServer(@"\\MyMachine");
PrintQueueCollection myPrintQueues = myPrintServer.GetPrintQueues();
foreach (PrintQueue pq in myPrintQueues)
if (pq.QueueStatus != PrintQueueStatus.Error)
foreach (PrintSystemJobInfo job in pq.GetPrintJobInfoCollection())
if (bNewJob == true)
PrintTicket pt = job.HostingPrintQueue.CurrentJobSettings.CurrentPrintTicket;
UpdateText("Current Copies : " + pt.CopyCount.Value.ToString());
UpdateText("Default Copies : " + dpt.CopyCount.Value.ToString());
UpdateText("User Copies : " + upt.CopyCount.Value.ToString());
UpdateText("Full Name :" + job.HostingPrintQueue.FullName.ToString());
UpdateText("Job ID : " + job.JobIdentifier.ToString());
UpdateText("Job Name : " + job.JobName.ToString());
DateTime dt = job.TimeJobSubmitted;
UpdateText("Submitter :" + job.Submitter.ToString());
UpdateText("Hosted Server :" + job.HostingPrintServer.Name.ToString());
UpdateText("No of Pages :" + job.NumberOfPages.ToString());