KR100294216B1 - How to Repair Errors in the Printer Driver - Google Patents
How to Repair Errors in the Printer Driver Download PDFInfo
- Publication number
- KR100294216B1 KR100294216B1 KR1019980049561A KR19980049561A KR100294216B1 KR 100294216 B1 KR100294216 B1 KR 100294216B1 KR 1019980049561 A KR1019980049561 A KR 1019980049561A KR 19980049561 A KR19980049561 A KR 19980049561A KR 100294216 B1 KR100294216 B1 KR 100294216B1
- Authority
- KR
- South Korea
- Prior art keywords
- printing
- error
- printing data
- printer
- spooler
- Prior art date
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
본 발명은 프린팅 명령이 접수되면 프린팅 데이터를 생성하여 스풀러에 프린팅 데이터를 전송하여 컴퓨터의 저장 매체의 임시 영역에 프린팅 데이터를 저장시키고; 프린팅 도중에 프린터에 에러가 발생되면 에러의 종류를 검출하고, 검출된 에러의 종류가 시간 경과에 따라 자체적으로 복구되지 않는 복구 불가능 에러인지를 판단하여 복구 불가능한 에러이면 스풀러에 저장된 프린팅 데이터를 삭제하며; 스풀러에 저장된 프린팅 데이터가 삭제되면 복구 불가능 에러가 복구되었는지의 여부를 체크하고; 체크 결과, 복구 불가능 에러가 복구되었으면 컴퓨터의 저장 매체의 임시 영역에 저장된 프린팅 데이터를 다시 프린터로 전송하여 프린팅 데이터의 프린팅을 완료하도록 하는 특징이 있다. 따라서, 본 발명은 프린팅 명령이 접수되면 프린팅 데이터를 별도로 저장한 후 프린터에 프린팅 데이터를 전송하며, 프린팅 작업 도중에 갑작스런 정전 등으로 인하여 프린터가 다운되는 에러가 발생되면 스풀러에 저장된 프린팅 데이터를 삭제하고 별도로 저장되어 있는 프린팅 데이터로 다시 프린팅 작업을 수행함으로써 에러 발생으로 인해 불필요한 데이터가 프린팅되는 것을 막아 인쇄 용지의 낭비를 방지할 수 있다.The present invention generates printing data when the printing command is received and transmits the printing data to the spooler to store the printing data in a temporary area of the storage medium of the computer; If an error occurs in the printer during printing, the type of error is detected, and if the detected type of error is a non-recoverable error that does not recover by itself over time, and deletes the printing data stored in the spooler if it is an unrecoverable error; Check whether or not an unrecoverable error has been recovered when printing data stored in the spooler is deleted; As a result of the check, if the non-recoverable error is recovered, the printing data stored in the temporary area of the storage medium of the computer is transmitted back to the printer to complete printing of the printing data. Therefore, when the printing command is received, the present invention stores the printing data separately and then transmits the printing data to the printer. When an error occurs in the printer due to a sudden power failure during the printing operation, the printing data stored in the spooler is deleted and separately. By performing the printing operation again with the stored printing data, it is possible to prevent unnecessary data from being printed due to an error, thereby preventing waste of printing paper.
Description
본 발명은 프린터 드라이버(Printer Driver)의 에러 복구 방법에 관한 것으로, 더욱 상세하게는 프린팅 데이터를 임시 영역에 별도로 저장하여 프린팅 작업 도중에 복구 불가능 에러 즉, 갑작스런 정전 등으로 인하여 프린터가 다운되는 에러가 발생되면 스풀러(Spooler)에 스풀(Spool)된 프린팅 데이터를 삭제하고 임시 영역에 별도로 저장되어 있는 프린팅 데이터로 다시 프린팅 작업을 수행하는 프린터 드라이버의 에러 복구 방법에 관한 것이다.The present invention relates to a method of recovering an error of a printer driver, and more particularly, an unrecoverable error during printing, that is, an error in which the printer is down due to a sudden power failure. The present invention relates to an error recovery method of a printer driver that deletes printing data spooled in a spooler and reprints the printing data stored separately in a temporary area.
일반적으로, 컴퓨터와 프린터는 사무자동화기기의 핵심적이고 필수적인 장치이다. 컴퓨터에서 작성된 문서를 프린터에서 프린팅하는 경우, 컴퓨터에는 프린터를 구동시키기 위한 프린터 드라이버가 필요하다.In general, computers and printers are essential and essential devices of office automation equipment. When printing a document created on a computer on a printer, the computer needs a printer driver to drive the printer.
프린터 드라이버는 컴퓨터의 응용 프로그램에서 작성된 데이터를 프린터에서 해석 가능한 프린팅 데이터로 변환하는 역할을 수행한다. 즉, 컴퓨터의 응용 프로그램에서 작성된 데이터에 대한 프린팅명령이 접수되면, 프린터 기종의 선택 여부를 검출하고, 프린터 기종이 선택되었으면 선택된 프린터를 기본 프린터로 설정한다.The printer driver converts data created in an application program of a computer into printing data that can be interpreted by the printer. That is, when a printing command for data created by an application program of a computer is received, it is detected whether a printer model is selected, and if a printer model is selected, the selected printer is set as the default printer.
또한, 프린터 드라이버는 데이터를 페이지단위로 분할하고, 한 페이지분량의 데이터에 포함된 데이터와 제어코드 등을 적절하게 가공하여 프린팅 데이터를 생성하고, 생성된 프린팅 데이터를 스풀러에 전송하여 프린터에서 프린팅이 가능하도록 한다.In addition, the printer driver divides the data into page units, processes the data and control codes included in one page of data, generates printing data, and transmits the generated printing data to the spooler. Make it possible.
그런데, 이와 같은 종래의 프린터 드라이버에 의하면 다음과 같은 문제점들이 발생한다.However, according to such a conventional printer driver, the following problems occur.
첫째로, 프린팅 작업 도중 프린터에 급작스런 정전 등으로 복구 불가능한 에러가 발생되면 지금까지 프린터로 전송된 프린팅 데이터는 사라지는 관계로 프린터가 정상으로 돌아오면 프린터는 계속해서 스풀러에서 프린팅 데이터를 이어 받지만 에러 발생 이전에 전송되었던 프린팅 데이터는 모두 사라진 상태여서 프린터에서는 프린팅 명령을 그대로 프린팅하거나 깨진 문자를 프린팅함으로써 인쇄 용지가 불필요하게 낭비된다.First, if an unrecoverable error occurs in the printer during a printing operation, such as a sudden power outage, the printing data sent to the printer will be lost so that when the printer returns to normal, the printer continues to take over the printing data from the spooler but before the error occurs. All of the printing data sent to is lost, and the printer unnecessarily wastes the printing paper by printing the printing command as it is or by printing broken characters.
둘째로, 프린팅 명령이 프린팅되거나 깨진 문자가 프린팅되면 사용자가 프린터의 전원을 끄거나 프린팅 작업중인 프린팅 데이터를 삭제해야지만 프린팅 명령이 프린팅되거나 깨진 문자가 프린팅되는 것이 중단됨으로써 사용자에게 불편을 끼쳤다.Secondly, if a printing command is printed or a garbled character is printed, the user has to turn off the printer or delete the printing data while the printing operation is in progress, but the user is inconvenienced by stopping the printing of the print command or printing the garbled character.
따라서, 본 발명은 이와 같은 문제점들을 해결하기 위한 것으로서, 본 발명의 첫 번째 목적은 프린팅 명령이 접수되면 프린팅 데이터를 별도로 저장한 후 프린터에 프린팅 데이터를 전송하며, 프린팅 작업 도중에 갑작스런 정전 등으로 인하여 프린터가 다운되는 에러가 발생되면 스풀러에 저장된 프린팅 데이터를 삭제하고 별도로 저장되어 있는 프린팅 데이터로 다시 프린팅 작업을 수행함으로써 에러 발생으로 인해 불필요한 데이터가 프린팅되는 것을 막아 인쇄 용지의 낭비를 방지하는 데 있다.Accordingly, the present invention is to solve such problems, the first object of the present invention is to store the print data separately when the print command is received and then send the printing data to the printer, due to sudden power outage during the printing operation If an error occurs, the printing data stored in the spooler is deleted and printing is performed again with the printing data stored separately to prevent waste of printing paper by preventing unnecessary data from being printed due to an error.
본 발명의 두 번째 목적은 프린팅 작업 도중 에러가 발생되어도 에러가 복구되면 사용자의 별도의 명령없이 프린팅 작업을 완료함으로써 사용자에게 편의를 제공하는 데 있다.A second object of the present invention is to provide convenience to a user by completing a printing operation without a user's separate command when an error is recovered even if an error occurs during a printing operation.
도 1a 및 도 1b는 본 발명에 의한 프린터 드라이버의 에러 복구 방법을 설명하기 위한 동작 흐름도이다.1A and 1B are flowcharts illustrating an error recovery method of a printer driver according to the present invention.
<도면의 주요부분에 대한 부호의 설명><Description of the code | symbol about the principal part of drawing>
이와 같은 목적들을 달성하기 위한 본 발명의 특징은, 프린팅 명령이 접수되면 프린팅 데이터를 생성하여 스풀러에 프린팅 데이터를 전송하여 컴퓨터의 저장 매체의 임시 영역에 프린팅 데이터를 저장시키고; 프린팅 도중에 프린터에 에러가 발생되면 에러의 종류를 검출하고, 검출된 에러의 종류가 시간 경과에 따라 자체적으로 복구되지 않는 복구 불가능 에러인지를 판단하여 복구 불가능한 에러이면 스풀러에 저장된 프린팅 데이터를 삭제하며; 스풀러에 저장된 프린팅 데이터가 삭제되면 복구 불가능 에러가 복구되었는지의 여부를 체크하고; 체크 결과, 복구 불가능 에러가 복구되었으면 컴퓨터의 저장 매체의 임시 영역에 저장된 프린팅 데이터를 다시 프린터로 전송하여 프린팅 데이터의 프린팅을 완료하도록 하는 점에 있다.A feature of the present invention for achieving such objects is that, when a printing command is received, the printing data is generated and transmitted to the spooler to store the printing data in a temporary area of a storage medium of the computer; If an error occurs in the printer during printing, the type of error is detected, and if the detected type of error is a non-recoverable error that does not recover by itself over time, and deletes the printing data stored in the spooler if it is an unrecoverable error; Check whether or not an unrecoverable error has been recovered when printing data stored in the spooler is deleted; As a result of the check, if the non-recoverable error is recovered, the printing data stored in the temporary area of the storage medium of the computer is sent back to the printer to complete printing of the printing data.
여기서, 프린터 드라이버의 에러 복구 방법은 프린팅 데이터가 프린터에서 프린팅이 종료되면 컴퓨터의 저장 매체의 임시 영역에 저장된 프린팅 데이터를 삭제시킨다.Here, the error recovery method of the printer driver deletes the printing data stored in the temporary area of the storage medium of the computer when the printing data is finished in the printer.
이하, 본 발명의 바람직한 실시예에 대하여 첨부도면을 참조하여 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.
도 1a 및 도 1b는 본 발명에 의한 프린터 드라이버의 에러 복구 방법을 설명하기 위한 동작 흐름도이다.1A and 1B are flowcharts illustrating an error recovery method of a printer driver according to the present invention.
본 발명은 프린팅 명령이 접수되면 프린팅 데이터를 생성하여 스풀러에 프린팅 데이터를 전송하여 컴퓨터의 저장 매체의 임시 영역에 프린팅 데이터를 저장시키는 단계(S100); 프린팅 도중에 프린터에 에러가 발생되면 에러의 종류를 검출하고, 검출된 에러의 종류가 시간 경과에 따라 자체적으로 복구되지 않는 복구 불가능 에러인지를 판단하여 복구 불가능한 에러이면 스풀러에 저장된 프린팅 데이터를 삭제하는 단계(S200); 스풀러에 저장된 프린팅 데이터가 삭제되면 복구 불가능 에러가 복구되었는지의 여부를 체크하는 단계(S300); 체크 결과, 복구 불가능 에러가 복구되었으면 컴퓨터의 저장 매체의 임시 영역에 저장된 프린팅 데이터를 다시 프린터로 전송하여 프린팅 데이터의 프린팅을 완료하는 단계(S400)를 포함하여 구성된다.When the printing command is received, the present invention generates the printing data and transmits the printing data to the spooler to store the printing data in a temporary area of the storage medium of the computer (S100); Detecting the type of error if an error occurs in the printer during printing, and determining whether the detected error type is an unrecoverable error that does not recover itself over time, and if the error is an unrecoverable error, deleting the printing data stored in the spooler. (S200); Checking whether or not an unrecoverable error is recovered when printing data stored in the spooler is deleted (S300); As a result of the check, if the non-recoverable error is recovered, the method may include transmitting printing data stored in the temporary area of the storage medium of the computer back to the printer to complete printing of the printing data (S400).
먼저, 프린팅 명령이 접수되면(S110), 프린터 드라이버는 컴퓨터의 응용 프로그램에서 작성된 데이터를 페이지단위로 분할하고, 한 페이지분량의 데이터에 포함된 데이터와 제어코드 등을 적절하게 가공하여 프린팅 데이터를 생성하여(S120), 생성된 프린팅 데이터를 스풀러에 스풀시킨다(S130).First, when a printing command is received (S110), the printer driver divides data created by an application program of a computer into pages, and generates printing data by appropriately processing data and control codes included in one page of data. In step S120, the generated printing data is spooled in the spooler (S130).
스풀러에 프린팅 데이터의 스풀이 완료되었는가를 검출하여(S140), 스풀이 완료되면 프린터 드라이버는 프린팅 데이터를 컴퓨터의 메모리의 임시 영역에 저장시킨다(S150).The spooler detects whether the spool of printing data is completed (S140), and when the spool is completed, the printer driver stores the printing data in a temporary area of the memory of the computer (S150).
이러한 상태에서 프린터에서 프린팅이 시작되는지를 검출하여 프린팅이 시작되면(S210, S220), 프린터 드라이버는 프린터의 에러 발생 여부를 검출하여(S230), 프린터에서 에러가 발생되면 에러의 종류를 검출한다(S240, S250).In this state, when the printer detects whether printing is started and the printing is started (S210, S220), the printer driver detects whether or not the printer has an error (S230), and if an error occurs in the printer, detects the type of error ( S240, S250).
그리하여, 발생된 에러가 복구 불가능 에러 즉, 급작스런 정전으로 프린터의 전원이 다운되는 등의 이유로 인하여 프린터에 전송된 프린팅 데이터가 사라지는 에러가 발생되면(S260), 프린터 드라이버는 스풀러에 스풀되어 있는 프린팅 데이터를 삭제시킨다(S270).Thus, if the generated error is an unrecoverable error, that is, an error that the printing data sent to the printer disappears due to a sudden power outage or the like (S260), the printer driver prints the spooled printing data. Delete (S270).
그리고, 프린터 드라이버는 프린터에서 복구 불가능 에러가 복구되었는지를 체크하여(S310, S320), 복구 불가능 에러가 복구되었으면 컴퓨터의 메모리의 임시 영역에 저장된 프린팅 데이터를 다시 스풀러에 스풀시켜(S410), 프린터에서 프린팅 데이터의 프린팅을 종료시키도록 한다(S420).Then, the printer driver checks whether the non-recoverable error is recovered in the printer (S310 and S320). If the non-recoverable error is recovered, the printer driver spools the printing data stored in the temporary area of the computer's memory back to the spooler (S410). The printing of the printing data is terminated (S420).
그런 후, 프린터 드라이버는 프린팅이 종료되는 것을 검출하여(S430), 프린팅이 종료되면 메모리의 임시 영역에 저장된 프린팅 데이터를 삭제시킨다(S440).Thereafter, the printer driver detects that the printing is finished (S430), and when the printing is finished, deletes the printing data stored in the temporary area of the memory (S440).
한편, 단계 240(S240)에서 에러가 발생되지 않거나 또는 단계 260(S260)에서 복구 가능 에러(예를 들면, 프린터 메모리의 오버플로우(Overflow), 밴드 에러(Band Error) 등)가 발생되면 프린터는 일시적으로 프린팅 데이터를 받지 못할 뿐 잠시 후에 다시 프린팅 데이터를 받고 처리할 수 있으므로 프린터 드라이버는 스풀러에 스풀된 프린팅 데이터를 삭제시키지 않고 단계 420(S420) 이후의 과정을 수행하여 프린팅을 종료한다.On the other hand, if an error does not occur in step 240 (S240) or a recoverable error (for example, an overflow of the printer memory, a band error, etc.) occurs in step 260 (S260), the printer Since the printing data is temporarily not received and the printing data can be received and processed again after a while, the printer driver performs the process after step 420 (S420) without ending the printing data spooled to the spooler to end printing.
따라서, 프린터 드라이버는 프린팅 도중 에러가 복구가 불가능한 에러가 발생되면 스풀러에 스풀된 프린팅 데이터를 모두 삭제시키고 에러가 복구되면 별도로 저장된 프린팅 데이터를 스풀러에 다시 스풀시킨다.Therefore, the printer driver deletes all the print data spooled in the spooler when an error that cannot be recovered during printing occurs and spools the separately stored print data back to the spooler when the error is recovered.
이와 같이, 본 발명의 상세한 설명에서는 구체적인 실시예에 관해 설명하였으나, 본 발명의 범주에서 벗어나지 않는 한도내에서 여러 가지 변형이 가능함은 물론이다. 그러므로, 본 발명의 범위는 설명된 실시예에 국한되어 정해져서는 안되며 후술하는 특허청구범위 뿐만 아니라 이 특허청구범위와 균등한 것들에 의해 정해져야 한다.As described above, in the detailed description of the present invention, specific embodiments have been described, but various modifications are possible without departing from the scope of the present invention. Therefore, the scope of the present invention should not be limited to the described embodiments, but should be defined by the claims below and equivalents thereof.
이상에서 설명한 바와 같이 본 발명은 다음과 같은 이점들이 발생한다.As described above, the present invention generates the following advantages.
첫 번째로, 프린팅 명령이 접수되면 프린팅 데이터를 별도로 저장한 후 프린터에 프린팅 데이터를 전송하며, 프린팅 작업 도중에 갑작스런 정전 등으로 인하여 프린터가 다운되는 에러가 발생되면 스풀러에 저장된 프린팅 데이터를 삭제하고 별도로 저장되어 있는 프린팅 데이터로 다시 프린팅 작업을 수행함으로써 에러 발생으로 인해 불필요한 데이터가 프린팅되는 것을 막아 인쇄 용지의 낭비를 방지한다.First, when a printing command is received, the printing data is stored separately and the printing data is sent to the printer.If an error occurs that causes the printer to crash due to a sudden power failure during printing, the printing data stored in the spooler is deleted and stored separately. By performing the printing operation again with the existing printing data, unnecessary data is prevented from being printed due to an error occurrence, thereby preventing waste of printing paper.
두 번째로, 프린팅 작업 도중 에러가 발생되어도 에러가 복구되면 사용자의 별도의 명령없이 프린팅 작업을 완료함으로써 사용자에게 편의를 제공한다.Secondly, even if an error occurs during printing, if the error is recovered, the user is provided with convenience by completing the printing without the user's separate command.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980049561A KR100294216B1 (en) | 1998-11-18 | 1998-11-18 | How to Repair Errors in the Printer Driver |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019980049561A KR100294216B1 (en) | 1998-11-18 | 1998-11-18 | How to Repair Errors in the Printer Driver |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20000032924A KR20000032924A (en) | 2000-06-15 |
KR100294216B1 true KR100294216B1 (en) | 2001-07-12 |
Family
ID=19558861
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019980049561A KR100294216B1 (en) | 1998-11-18 | 1998-11-18 | How to Repair Errors in the Printer Driver |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100294216B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2005007762A (en) | 2003-06-19 | 2005-01-13 | Seiko Epson Corp | Printer, printing system, program and method for controlling terminal unit |
-
1998
- 1998-11-18 KR KR1019980049561A patent/KR100294216B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR20000032924A (en) | 2000-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP2577553B2 (en) | Terminal device | |
US6473192B1 (en) | Job processing apparatus | |
EP1936537B1 (en) | On-line state resumption in a printer | |
US6476938B1 (en) | Print control system and method | |
US7538898B2 (en) | Printing apparatus, printing control method therefor, and information processing apparatus | |
USRE37691E1 (en) | Output method | |
KR100294216B1 (en) | How to Repair Errors in the Printer Driver | |
JP3702546B2 (en) | Multifunctional peripheral device and storage medium | |
JP2771677B2 (en) | Printing equipment | |
JPS6243876B2 (en) | ||
JP4661636B2 (en) | Print data generator | |
KR102500971B1 (en) | Printing apparatus and storage medium | |
JPH03262677A (en) | Printer | |
JPH10326166A (en) | Printer device | |
JPH1199730A (en) | Printer and its control method | |
KR100565792B1 (en) | Font data recording method for print | |
JP2002248840A (en) | Printing controller, method for processing data and storage medium | |
JPH11321036A (en) | Image-processing apparatus and its control method | |
JP2768307B2 (en) | Printer device | |
JP3304471B2 (en) | Printing equipment | |
JPH1185424A (en) | Automatic restoration system for emulation | |
JPH0664252A (en) | Printing equipment having emulation mode | |
JP3037278B2 (en) | Printing apparatus and character cache management method in the apparatus | |
JPH06187110A (en) | Print system | |
JPH11249853A (en) | Image forming device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20080328 Year of fee payment: 8 |
|
LAPS | Lapse due to unpaid annual fee |