Nothing Special   »   [go: up one dir, main page]

CN110058825B - Method and system for optimizing application program of handheld printer - Google Patents

Method and system for optimizing application program of handheld printer Download PDF

Info

Publication number
CN110058825B
CN110058825B CN201910399039.8A CN201910399039A CN110058825B CN 110058825 B CN110058825 B CN 110058825B CN 201910399039 A CN201910399039 A CN 201910399039A CN 110058825 B CN110058825 B CN 110058825B
Authority
CN
China
Prior art keywords
application program
file name
printer
modified
printer application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910399039.8A
Other languages
Chinese (zh)
Other versions
CN110058825A (en
Inventor
方毅斌
郑志波
李宁
张敏捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Waigaoqiao Shipbuilding Co Ltd
Original Assignee
Shanghai Waigaoqiao Shipbuilding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Waigaoqiao Shipbuilding Co Ltd filed Critical Shanghai Waigaoqiao Shipbuilding Co Ltd
Priority to CN201910399039.8A priority Critical patent/CN110058825B/en
Publication of CN110058825A publication Critical patent/CN110058825A/en
Application granted granted Critical
Publication of CN110058825B publication Critical patent/CN110058825B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1204Improving or facilitating administration, e.g. print management resulting in reduced user or operator actions, e.g. presetting, automatic actions, using hardware token storing data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1202Dedicated interfaces to print systems specifically adapted to achieve a particular effect
    • G06F3/1203Improving or facilitating administration, e.g. print management
    • G06F3/1206Improving or facilitating administration, e.g. print management resulting in increased flexibility in input data format or job format or job type
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/12Digital output to print unit, e.g. line printer, chain printer
    • G06F3/1201Dedicated interfaces to print systems
    • G06F3/1223Dedicated interfaces to print systems specifically adapted to use a particular technique
    • G06F3/1237Print job management
    • G06F3/1253Configuration of print job parameters, e.g. using UI at the client

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a system for optimizing an application program of a handheld printer, wherein the method comprises the following steps: acquiring a window handle of an application program of the printer; acquiring a selection instruction, wherein the selection instruction is used for acquiring the default file name of a printing file selected in a printer application program through a window handle, and the content of the printing file is the content printed by a printer; acquiring a default file name through a selection instruction; modifying the default file name into a preset modified file name; and sending the modified file name to the printer application program through a window handle of the printer application program. According to the method and the device, the window handle of the printer application program is acquired, the default file name of the printed file is acquired, the default file name is modified into the preset modified file name, and the preset modified file name is sent to the printer application program, so that the default file name can be prevented from being modified manually, the workload of operators can be greatly reduced under the condition that printed files are more, the working efficiency is improved, and the error rate is reduced.

Description

Method and system for optimizing application program of handheld printer
Technical Field
The invention relates to the field of computers, in particular to a method and a system for optimizing an application program of a handheld printer.
Background
In a processing or construction site, a handheld printer is often used to print a mark, and before a printing job, the print content needs to be edited into an EXCEL (electronic form) form, and then the EXCEL form needs to be imported into the handheld printer by using a printer application (computer application) associated with the handheld printer, and the content in the EXCEL form is read by the handheld printer to be printed.
When the handheld printer reads the contents in the EXCEL form, the EXCEL file is firstly decomposed into a plurality of import files in line or column units, and the content of the import files is read and printed by the handheld printer.
The imported file name formed by each EXCEL form is convenient for user operation, a default file name set by an application program is usually provided, the default file name formed during operation of each EXCEL form is the same, if a plurality of EXCEL files need to be imported, the file name of the imported file formed by each EXCEL file needs to be different and can be stored, otherwise, the same file name is covered, so that the work of renaming the default file name is needed, when a large number of files are operated, the workload of operators is large, the efficiency is not high, and errors are easy to occur.
Disclosure of Invention
The invention provides a method and a system for optimizing an application program of a handheld printer, aiming at overcoming the defects that manual file naming operation of the handheld printer in the prior art is easy to make mistakes and the working efficiency is low.
The invention solves the technical problems through the following technical scheme:
a method of optimizing a handheld printer application, the method comprising:
acquiring a window handle of an application program of the printer;
acquiring a selection instruction, wherein the selection instruction is used for acquiring the default file name of a printing file selected in the printer application program through the window handle, and the content of the printing file is the content printed by a printer;
acquiring the default file name through the selection instruction;
modifying the default file name into a preset modified file name;
and sending the modified file name to the printer application program through the window handle of the printer application program.
Preferably, the method for optimizing the application program of the handheld printer further comprises:
and sending an import instruction to the window handle of the printer application program, wherein the import instruction is used for instructing the printer application program to import the file corresponding to the modified file name into the printer.
Preferably, the print file includes a plurality of files, and the method for optimizing the application program of the handheld printer further includes:
acquiring default file names corresponding to the printing files through the window handle of the printer application program;
and sequentially reading each default file name, sequentially modifying each default file name to obtain the corresponding modified file name, and sequentially sending each modified file name to the printer application program through the window handle of the printer application program.
Preferably, the method for optimizing the application program of the handheld printer further comprises:
and setting the preset modified file name through a display interface.
Preferably, the preset modified filename includes a common field and a distinct field, the common field is the same content in all the modified filenames, and the distinct field is the content changed according to a preset change rule.
A handheld typewriter application program optimization system comprises a connection module, a selection module, an acquisition module, a modification module and a sending module;
the connection module is used for acquiring a window handle of the printer application program;
the selection module is used for acquiring a selection instruction, the selection instruction is used for acquiring the default file name of the printing file selected in the printer application program through the window handle, and the content of the printing file is the content printed by a printer;
the acquisition module is used for acquiring the default file name through the selection instruction;
the modification module is used for modifying the default file name into a preset modified file name;
and the sending module is used for sending the modified file name to the printer application program through the window handle of the printer application program.
Preferably, the system for optimizing the application program of the handheld printer further includes an import module, where the import module is configured to send an import instruction to a window handle of the application program of the printer, and the import instruction is configured to instruct the application program of the printer to import a file corresponding to the modified file name to the printer.
Preferably, the printing files include a plurality of printing files, and the modification module is further configured to obtain default filenames corresponding to the plurality of printing files through a window handle of the printer application; reading each default file name in sequence, and modifying each default file name in sequence to obtain the corresponding modified file name;
the sending module is further configured to send each modified filename to the printer application in sequence via the window handle of the printer application.
Preferably, the system for optimizing the application program of the handheld printer further comprises a setting module, and the setting module is used for setting the preset modified file name through a display interface.
Preferably, the preset modified filename includes a common field and a distinct field, the common field is the same content in all the modified filenames, and the distinct field is the content changed according to a preset change rule.
The positive progress effects of the invention are as follows:
according to the method and the device, the window handle of the printer application program is acquired, the default file name of the printed file is acquired, the default file name is modified into the preset modified file name, and the preset modified file name is sent to the printer application program, so that the default file name can be prevented from being modified manually, the workload of operators can be greatly reduced under the condition that printed files are more, the working efficiency is improved, and the error rate is reduced.
Drawings
Fig. 1 is a flowchart of a method for optimizing an application program of a handheld printer according to embodiment 1 of the present invention.
Fig. 2 is a block diagram of a handheld printer application optimization system according to embodiment 2 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The invention provides a method for optimizing an application program of a handheld printer, which comprises the following steps of:
step 100, opening a printer application program, wherein the printer application program is used for loading the pre-edited EXCEL form.
The printer application forms a print file from the EXCEL form, the print file including a default file name.
The printer application program can be opened through manual operation, and can also be opened through calling the execution file of the printer application program, so that the operation of operators is further facilitated.
Step 101, acquiring a window handle of the printer application program.
And 102, acquiring a selection instruction.
The selection command is used to acquire a default file name of a print file selected by the printer application through the window handle, and the content of the print file is the content of the printer print.
And 103, acquiring a default file name through a selection instruction.
And step 104, modifying the default file name into a preset modified file name.
Step 105, the modified filename is sent to the printer application via the window handle of the printer application.
Usually, a plurality of print files are included, and in order to further improve the work efficiency, default file names corresponding to the plurality of print files can be acquired by a window handle of a printer application.
And sequentially reading each default file name, sequentially modifying each default file name to obtain a corresponding modified file name, and sequentially sending each modified file name to the printer application program through the window handle of the printer application program.
In order to further facilitate the user operation and improve the work efficiency, step 104 is preceded by
And 104', setting a preset modified file name through the display interface.
The step 104' is set to facilitate the operator to customize the modified file name as desired.
In order to facilitate automatic operation, the preset modified file name can be set to comprise a common field and a different field, wherein the same content in all the modified file names is the common field, and the different field is the content changed according to the preset change rule. For example, if the common field of the preset modified file name is set to 20190401 ", and the different field is set to a number of the incremental change rule starting from 1, the modified file names are 20190401-1, 20190401-2, 20190401-3 … ….
And 106, sending an import instruction to the window handle of the printer application program, wherein the import instruction is used for instructing the printer application program to import the file corresponding to the modified file name into the printer.
In the embodiment, the window handle of the printer application program is acquired, the default file name of the printed file is acquired, the default file name is modified into the preset modified file name, and the preset modified file name is sent to the printer application program, so that manual modification of the default file name can be avoided, the workload of operators can be greatly reduced under the condition that printed files are more, the working efficiency is improved, and the error rate is reduced.
Example 2
The present embodiment provides a handheld printer application optimization system, as shown in fig. 2, the handheld printer application optimization system includes an opening module 200, a connection module 201, a selection module 202, an obtaining module 203, a modification module 204, a sending module 205, a setting module 206, and an importing module 207.
The opening module 200 is used to open a printer application for loading pre-edited EXCEL forms.
The printer application forms a print file according to the EXCEL form, and the print file includes a default file name.
The printer application program can be opened through manual operation, and can also be opened through calling the execution file of the printer application program, so that the operation of operators is further facilitated.
The connection module 201 is used for acquiring a window handle of the printer application program;
the selection module 202 is configured to obtain a selection instruction, where the selection instruction is used to obtain a default filename of a print file selected in the printer application program through the window handle, and the content of the print file is content printed by a printer;
the obtaining module 203 is configured to obtain a default filename through a selection instruction;
the modification module 204 is configured to modify the default filename into a preset modified filename;
the sending module 205 is configured to send the modified filename to the printer application via the window handle of the printer application.
Usually, the printing files comprise a plurality of printing files, and in order to further improve the working efficiency, default file names corresponding to the printing files can be acquired through a window handle of a printer application program;
and sequentially reading each default file name, sequentially modifying each default file name to obtain a corresponding modified file name, and sequentially sending each modified file name to the printer application program through the window handle of the printer application program.
The setting module 206 is configured to set a preset modified filename through the display interface, so that an operator can customize the modified filename according to requirements.
In order to facilitate automatic operation, the preset modified file name can be set to comprise a common field and a different field, wherein the same content in all the modified file names is the common field, and the different field is the content changed according to the preset change rule. For example, if the common field of the preset modified file name is set to 20190401 ", and the different field is set to a number of the incremental change rule starting from 1, the modified file names are 20190401-1, 20190401-2, 20190401-3 … ….
The import module 207 is configured to send an import instruction to a window handle of a printer application, where the import instruction is used to instruct the printer application to import a file corresponding to a modified file name into a printer.
Preferably, the printing files comprise a plurality of printing files, and the modification module is further configured to obtain default filenames corresponding to the plurality of printing files through a window handle of the printer application; reading each default file name in sequence, and modifying each default file name in sequence to obtain a corresponding modified file name respectively;
the sending module is further configured to send each modified filename to the printer application in sequence via the window handle of the printer application.
In the embodiment, the window handle of the printer application program is acquired, the default file name of the printed file is acquired, the default file name is modified into the preset modified file name, and the preset modified file name is sent to the printer application program, so that manual modification of the default file name can be avoided, the workload of operators can be greatly reduced under the condition that printed files are more, the working efficiency is improved, and the error rate is reduced.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes or modifications to these embodiments may be made by those skilled in the art without departing from the principle and spirit of this invention, and these changes and modifications are within the scope of this invention.

Claims (4)

1. A method for optimizing an application program of a handheld printer, the method comprising:
acquiring a window handle of an application program of the printer;
acquiring a selection instruction, wherein the selection instruction is used for acquiring the default file name of a printing file selected in the printer application program through the window handle, and the content of the printing file is the content printed by a printer;
acquiring the default file name through the selection instruction;
modifying the default file name into a preset modified file name;
sending the modified file name to the printer application program through a window handle of the printer application program;
the printing file comprises a plurality of printing files, and the method for optimizing the application program of the handheld printer further comprises the following steps:
acquiring default file names corresponding to the printing files through the window handle of the printer application program;
reading each default file name in sequence, modifying each default file name in sequence to obtain a corresponding modified file name, and sending each modified file name to the printer application program sequentially through a window handle of the printer application program;
the method for optimizing the application program of the handheld printer further comprises the following steps:
setting the preset modified file name through a display interface;
the preset modified file names which can be set comprise common fields and different fields, the common fields are the same contents in all the modified file names, and the different fields are the contents which are changed according to preset change rules.
2. The hand-held printer application optimization method of claim 1, wherein the hand-held printer application optimization method further comprises:
and sending an import instruction to the window handle of the printer application program, wherein the import instruction is used for instructing the printer application program to import the file corresponding to the modified file name into the printer.
3. A handheld inker application program optimization system is characterized in that the handheld inker application program optimization system comprises a connection module, a selection module, an acquisition module, a modification module and a sending module;
the connection module is used for acquiring a window handle of the printer application program;
the selection module is used for acquiring a selection instruction, the selection instruction is used for acquiring the default file name of the printing file selected in the printer application program through the window handle, and the content of the printing file is the content printed by a printer;
the acquisition module is used for acquiring the default file name through the selection instruction;
the modification module is used for modifying the default file name into a preset modified file name;
the sending module is used for sending the modified file name to the printer application program through the window handle of the printer application program;
the modification module is further used for acquiring default file names corresponding to the printing files through window handles of the printer application program; reading each default file name in sequence, and modifying each default file name in sequence to obtain the corresponding modified file name;
the sending module is further configured to send each modified filename to the printer application in sequence via the window handle of the printer application;
the system for optimizing the application program of the handheld printer further comprises a setting module, wherein the setting module is used for setting the preset modified file name through a display interface;
the preset modified file names which can be set comprise common fields and distinguishing fields, the common fields are the same contents in all the modified file names, and the distinguishing fields are the contents which are changed according to preset change rules.
4. The handheld printer application optimization system of claim 3 further comprising an import module for sending an import instruction to a window handle of the printer application, the import instruction for instructing the printer application to import a file corresponding to the modified filename into the printer.
CN201910399039.8A 2019-05-14 2019-05-14 Method and system for optimizing application program of handheld printer Active CN110058825B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910399039.8A CN110058825B (en) 2019-05-14 2019-05-14 Method and system for optimizing application program of handheld printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910399039.8A CN110058825B (en) 2019-05-14 2019-05-14 Method and system for optimizing application program of handheld printer

Publications (2)

Publication Number Publication Date
CN110058825A CN110058825A (en) 2019-07-26
CN110058825B true CN110058825B (en) 2022-08-02

Family

ID=67323182

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910399039.8A Active CN110058825B (en) 2019-05-14 2019-05-14 Method and system for optimizing application program of handheld printer

Country Status (1)

Country Link
CN (1) CN110058825B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127305A (en) * 2004-10-29 2006-05-18 Kyocera Mita Corp Image forming apparatus and printing program

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7346850B2 (en) * 1998-06-12 2008-03-18 Cygnus Systems, Inc. System and method for iconic software environment management
JP3673779B2 (en) * 2002-08-05 2005-07-20 キヤノン株式会社 Image supply apparatus, control method therefor, and print system
US20070124271A1 (en) * 2005-11-25 2007-05-31 International Business Machines Corporation Method and system for managing file aliases
KR101317778B1 (en) * 2006-07-26 2013-10-15 삼성전자주식회사 Image forming device and method of storing print file for the saving and printing system havinh the same
CN101295234B (en) * 2008-06-26 2010-12-08 北京中星微电子有限公司 Handle processing method and device under PictBridge standard
US20120158794A1 (en) * 2010-12-20 2012-06-21 Microsoft Corporation Techniques to discover object interfaces
CN102662611B (en) * 2012-03-05 2014-11-05 沈阳通用软件有限公司 Method for print-auditing in Windows environment
CN108352995B (en) * 2016-11-25 2020-09-08 华为技术有限公司 SMB service fault processing method and storage device
CN108388411B (en) * 2018-03-05 2021-05-18 菲尼克斯(南京)智能制造技术工程有限公司 Laser printing system, laser printing method and conversion device for printer computer

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006127305A (en) * 2004-10-29 2006-05-18 Kyocera Mita Corp Image forming apparatus and printing program

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Extension and design of secure dynamic updates in domain name systems;Young-Chul Shim et al.;《IEEE Xplore》;20020806;全文 *
powerbuilder与excel的结合;许贵江 等;《辽宁师专学报》;20030630;第5卷(第2期);全文 *
如何修改文件的默认打开方式;黄锋;《电脑爱好者》;20011231(第12期);全文 *

Also Published As

Publication number Publication date
CN110058825A (en) 2019-07-26

Similar Documents

Publication Publication Date Title
US7120634B2 (en) Computerized prepress
CN106164843B (en) Display input device and the image forming apparatus for having the display input device
US20100275144A1 (en) Highly visual drag and drop method to simplify programming special pages
DE10257428A1 (en) Control of software via bundles
CN106844307B (en) System and method for converting Excel into Word based on mark
US20150242722A1 (en) Image processing condition setting program, image processing condition setting method, and image processing device
EP2854023A1 (en) Parameter setting assisting system, parameter setting assisting method, and program
DE10313950A1 (en) Device resident driver system and method
CN110058825B (en) Method and system for optimizing application program of handheld printer
JP2004341675A (en) Development system, electronic form using system, server, program, and recording medium
US20050010548A1 (en) Automatic file generating apparatus, method, program and record medium
CN1831811A (en) Document processing apparatus
CN110941586A (en) Engineering design data management method and system
JP3124342B2 (en) Annotation element creation and editing method in CAD system
CN116705171B (en) Batch biological data processing method, device and medium
JP2005332100A (en) Print setting sharing support device
KR100555765B1 (en) Method for changing font information by a printer driver
JP2020161013A (en) Control program
JPH0476725A (en) Printing device
JP2006309564A (en) Data generation device, display device for control, program therefor and recording medium
CN102566537A (en) Copper-clad plate glue water mixing control system
JPS6158079A (en) Method for processing rule line moving
JPH10124598A (en) Slip selector
JPH08123757A (en) File editing device and distributing device
JPH0855114A (en) Document managing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant