473,397 Members | 2,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Printint on dot matrix printer

8
Hi all,
I'm developing a Windows application in C#. It generates reports using ReportViewer. These reports should be printed on a dot matrix printer. However, there is a problem.
The application runs on multiple computers connected in a local network, the printer is connected to the network also. When the report is generated and the Print button from the toolstrip of the ReportViewer control is pressed, the default Print dialog appears. When the matrix printer is selected and Print is pressed, the application crashes showing the Windows error message (the one asking to send error to Microsoft).
However, there are some things I noticed:
1. The error appears only on some computers in the network. From the other computers, the printing on dot matrix printer runs fine.
2. Printing on a laser printer (also a network printer) is succesful on the computers where the printing with dot matrix printer fails.
3. Printing on the dot matrix printer is succesful from other applications on these computers.
4. All computers have the same operating system and the same version of my application.
Could anyone give me advise on how to approach the problem? I cannot debug this one because I'm using the functionality of the ReportViewer control for printing and actually don't have any source code to debug :).
Aug 19 '08 #1
3 3355
pootle
68
look at the system error logs in the event viewer. There is certainly an exception reported there - whenever you see the "report error to microsoft" dialog, it is because of an unhandled exception.
Aug 19 '08 #2
ypytt
8
The event report contains the following info:
Faulting application office.exe (the name of my appliaction), faulting module ntdll.dll. This is a Windows dll, and I couldn't fnd anything related that could help me.
Meanwhile, I figured out the following:
1. Only Administrators can print, however, all users have full permissions on the printer
2. The problem is obviously with the paper size: the printer has default paper size Fanfold, and the page size in the ReportViewer is Letter. When I change it to Fanfold before printing, it runs fine. However, I cannot do this manually every time. How can I do this programatically?
Aug 21 '08 #3
Plater
7,872 Expert 4TB
I think there is a PrintDocument object somewhere in there that can be used to set the properties of the printing object. Such as page size, orientations, header/footer size, etc.
It may also be possibly to (outside of code) manually go in and examine the properties of the "printer" on the computers (like under "printers and faxes") and change the defaulted paper type for the dot-matrix printers to be fanfold?
Aug 21 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Aditya | last post by:
Hi, I am working on a Web based Intranet application and one of the requirements of the project is to print to a dot matrix printer. The users access the application through a web browser (IE)...
4
by: Salad | last post by:
I'm developing an app where the print output will be on a dot-matrix printer. I suppose the printers will either be an Epson or Okidata, not really sure at this point. I, unfortunately, do not...
2
by: Ryan Gregg | last post by:
I'm working on a project where I need to be able to print a single line at a time to a dot matrix printer. Essentially we have a log printer and each time an event occurs on the system I need to...
1
by: Tancev Sasa | last post by:
I am interesting how to determin is the selected printer a dot-matrix printer or is it a laser printer What property is relevant to detrmin what type is selected printer
1
by: Paul H | last post by:
I am developing a database where some reports need to print to a laser and some need to print to a dot matrix printer. I am not interested in how to do this programmatically, I will let the user...
4
by: Paul H | last post by:
OK, I tried getting and old Newbury Data ND2500 working using the "Generic /Text only" driver in Win XP. It prints, but I could not find a way to set a custom page size that matches the paper I am...
3
by: Rich Kayton | last post by:
I have an application that is currently a DBASE/Clipper application. We print out a variety of custom labels on Epson DOT matrix printers. I would like to be able to print these labels. I am...
3
by: Adam Right | last post by:
Hi, Anyone knows how to print with dot matrix printer ? I want to print text with some formatting such as bold, underlined font, and landscape document etc... How can i do this with C#? Thanks...
1
by: amcgary | last post by:
Hello, I am trying to print a System.Drawing.Printing.PrintDocument to a dot matrix printer using C# .NET. I have created an instance of the PrintDocument and create a event handler for the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.