# printDocument component problem in .NET

**URL:** <https://forum.kirupa.com/t/printdocument-component-problem-in-net/173321>\
**Category:** programming\
**Created:** [December 23, 2005, 1:12pm UTC](https://forum.kirupa.com/t/printdocument-component-problem-in-net/173321 "2005-12-23T13:12:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhishek1](https://avatars.discourse-cdn.com/v4/letter/a/c89c15/32.png) [@abhishek1](https://forum.kirupa.com/u/abhishek1)\
**Post date:** [December 23, 2005, 1:12pm UTC](https://forum.kirupa.com/t/printdocument-component-problem-in-net/173321/1 "2005-12-23T13:12:25Z")

</div>

I am using .NET component printDocument class. The issue is this that my printer is on the network. So when i write the code -:

[size=2][color=#0000ff]string[/color][/size][size=2] printername = printDocument1.PrinterSettings.PrinterName;[/size]  
[size=2][/size]  
[size=2]I find nothing. Can anyone help me about how to set the path of the default printer in our c# program.[/size]  
[size=2][/size]  
[size=2]Thanks,[/size]  
[size=2]Abhishek  
[/size]
