473,698 Members | 2,490 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Printing in Dot-matrix printer

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) and submit data
forms of various types like Sales Invoices etc. Once they create a document
like a Sales Invoice, they need to print the document in a dot-matrix
printer connected locally.

I am presently writing ASP code that generates a dynamic text file based on
the layout that is to be printed and send the text file to the client
machine where an ActiveX component then sends the text file to the printer.

Though this process works, I am not sure if this is an effecient method. The
problems as I see it:

1. The layout in which the document is printed is hard coded in the
application and to change the printing layout, changes to the ASP code is
necessary.
2. I need an ActiveX component in the client machine and that means, the
client cannot use any browser or OS as he/she may wish.
3. It is taking a lot of coding effort to generate such layouts and dynamic
text files and there are numerous documents and reports to be printed.

Can anyone offer me a better solution to this problem. Any help will be
highly appreciated.

Thanks in advance
Aditya
Jul 19 '05 #1
1 2945
Aditya wrote on 26 jan 2004 in microsoft.publi c.inetserver.as p.general:
Can anyone offer me a better solution to this problem. Any help will be
highly appreciated.

Just make a textfile and have the browser print it via user print command.
You can changer the layout by having the user specify the format required.

Or

Use an .hta file downloaded to the user (intranet !) to do the printing.

Or

etc ...

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
8057
by: Markus Ernst | last post by:
Hi I have a title with a title gif: <h1><img src="mytitle.gif" alt="This is my title"></h1> So this is text-based browser and search-engine friendly and can be easily formatted with a style sheet. Now I have a separate stylesheet for media="print". As the title gif does
1
352
by: Dave Quigley[work] | last post by:
Im working on a printing module for a program that my company is writing and I am wondering if im working with printing the right way. From what I understand with the PrintDocument you get a device context and then procede to draw everything on to the page by hand. Is this the only way to do it or is there something easier. I have a whole bunch of fields and it would be cool if I could make a windows form that will look how it looks or...
3
2191
by: Chrisitiaan | last post by:
Hi, I want to develop a 'truly' object oriented application, that is, my business logic objects handle the business logic (of course) and the persistence to a MS SQL server database. The user interface only deals with objects (sometimes using reflection to make them 'editable'). I want to know if anybody has a good suggestion how to print my (collections of) objects. I dont want to use a tool like crystal reports, because it accesses the...
5
7324
by: John Bowman | last post by:
Hi, I've been reading through the threads on using the WebBrowser control in C# app's and how to print it's contents. I've got that much working. However, the big problem is I can't figure out how to detect when the printing is finished. I've read the article "Printing with the Internet Explorer WebBrowser Control" and it mentions some sample code in pwaitvb. This example pretty much useless to me because VB hides the how to do it. I...
1
1470
by: Dan Bass | last post by:
I've got a custom control that makes use of DrawString and DrawBezier, drawn from the graphics object passed by in the PaintEventArgs for the Paint event. I've not printed anything via c# before, but would it be easy to draw on a PrintDocument the same way I currently am on the control? Where should I start? Anything thing to watch for would be the fact the control could grow quite long (while I can keep the width fixed to the current...
2
1613
by: Steffen Loringer | last post by:
Hi group, I like to print my ASP.NET page with the internet explorer. I added a panel (with a black border and blue as background) and a button to my page. If I press print in the Internet Explorer, the panel is printed without the blue background but with the black border. The normal button is printed as seen on screen. What is the reason that the panel background color is not printed correctly?
1
1502
by: Nick | last post by:
Hi, I'm converting an existing VB/Access app into an ASP.Net Intranet app. Most of the conversion is pretty straight forward - except the printing! The old app prints mailing labels on Avery stationary - but I can't see how I can replicate this from the ASP... Any ideas on how to do this? Conversion into Word/Excel (we have v2003) is ok, as long as its seamless for the users.
1
976
by: Uncle_Albert | last post by:
Hi all! Printing in VB6 used to be a doddle, however, as with many other things, this task has been made much harder in VB.Net! Can anyone point me in the direction of sample code, tutorials, etc on printing in VB.Net. I need to print values from text boxes, datagrids, format text accordingly etc.
3
1908
by: Jay | last post by:
Hi, I have this problem with DataGrid printing. I have a page which contains only DataGrid. When i try to print the page, only 1st page contains the verticle and horizontal lines of the grid. The rest of the pages do not contain any lines.
10
2108
by: sophie_newbie | last post by:
Hi, I'm trying to write a piece of code that spawns a thread and prints dots every half second until the thread spawned is finished. Code is something like this: import threading class MyThread ( threading.Thread ): def run ( self ): myLongCommand()...
0
8685
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8880
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.