TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Koshlendra Singh
NA
98
0
error Printing files without using print dialog box in C#, asp.net 3.5
Jul 31 2010 8:05 AM
I am working on a project(online printing management system). By which we use network printer for
printing files but when we gives following code for printing file.
print document does not get the file from the system.
if (printersList.Items.Count > 0)
{
pr = new PrintDocument();
pr.PrinterSettings = new PrinterSettings();
pr.PrinterSettings.PrinterName = printersList.SelectedItem.
ToString();
pr.PrinterSettings.Copies = Convert.ToInt16(txtNoOfCopies.
Text);
//if (File.Exists(filename ))
//{
pr.PrinterSettings.
PrintFileName = FileUpload1.FileName;
// pr.PrinterSettings.
PrintFileName = filename;
pr.Print();
//}
// }
printer gets the command but print blank pages.
in highlited line printersetting does not get the file name.
plz suggest the right solution if possible.
Reply
Answers (
0
)
How insert double cot ("") in string
automation help for C# and xml