good morning.
in the production of prints from vo I use a lot of word through a
procedure inherited from previous programmers called 'compile word'.
I use this procedure mainly in the printing of certificates and
invoices. The procedure is very valid and functional, but the problem
is in the number of prints. If I want to print three copies of the
same document I must use a loop for ...next. The actual printing of
the created word document is done through 'shellexecute'. The help
request is: is there an alternative procedure to use word indicating
the number of copies to print? Another question: is there a way to
close word at the end of the printing with shellexecute? thanks
Aurora Baccio
good morning.but the problem is in the number of prints. If I want to print three copies of the same document I must use a loop for ...next.
in the production of prints from vo I use a lot of word through a procedure inherited from previous programmers called 'compile word'. I use this procedure mainly in the printing of certificates and invoices. The procedure is very valid and functional,
The actual printing of the created word document is done through 'shellexecute'.
The help request is: is there an alternative procedure to use word indicating the number of copies to print?
Another question: is there a way to close word at the end of the printing with shellexecute?
thanks
Aurora Baccio
good morning.but the problem is in the number of prints. If I want to print three copies of the same document I must use a loop for ...next.
in the production of prints from vo I use a lot of word through a procedure inherited from previous programmers called 'compile word'. I use this procedure mainly in the printing of certificates and invoices. The procedure is very valid and functional,
The actual printing of the created word document is done through 'shellexecute'.
The help request is: is there an alternative procedure to use word indicating the number of copies to print?
Another question: is there a way to close word at the end of the printing with shellexecute?
thanks
Aurora Baccio
Il giorno lunedì 15 febbraio 2021 15:43:18 UTC+1, aurora baccio ha
scritto:
good morning.
in the production of prints from vo I use a lot of word through a
procedure inherited from previous programmers called 'compile
word'. I use this procedure mainly in the printing of certificates
and invoices. The procedure is very valid and functional, but the
problem is in the number of prints. If I want to print three copies
of the same document I must use a loop for ...next. The actual
printing of the created word document is done through
'shellexecute'. The help request is: is there an alternative
procedure to use word indicating the number of copies to print?
Another question: is there a way to close word at the end of the
printing with shellexecute? thanks Aurora Baccio
Mr. Riedman good evening,
sorry you had problems with a Sicilian.
I am Sicilian.
However I don't think it's the same procedure.
I directly compile a .doc file using a procedure of the type
#variable name on the .doc file and I am told that the version was
provided by a programmer from Latina who worked in the clinic for
which I now work and from whom I inherited everything. The problem
is that for printing I have to use a script in php that prints word.
This allows me to print the number of copies that I require, but
slows down the application. Using shelexecute the difference is
significant but it becomes a problem if you print multiple copies.
It's as if word, at the end of the initial printing, doesn't get
closed, and in the long run you have crashing problems. With the
procedure in php I close word every time I finish printing. I was
wondering if there was a method to print a word file directly from vo
for the number of copies you want. only this. thanks always Aurora
Baccio
Hope this can help you to get it done
John
DO WHILE (hWnd := FindWindow(NULL_PSZ, PSZ("Adobe Reader"))) = NULL_PTR
Sleep(500)
ENDDO
Sleep(5000)
// Close
PostMessage(hWnd, WM_CLOSE, 0, 0)
Op 15-2-2021 om 15:43 schreef aurora baccio:functional, but the problem is in the number of prints. If I want to print three copies of the same document I must use a loop for ...next.
good morning.
in the production of prints from vo I use a lot of word through a procedure inherited from previous programmers called 'compile word'. I use this procedure mainly in the printing of certificates and invoices. The procedure is very valid and
The actual printing of the created word document is done through 'shellexecute'.
The help request is: is there an alternative procedure to use word indicating the number of copies to print?
Another question: is there a way to close word at the end of the printing with shellexecute?
thanks
Aurora Baccio
Il giorno martedì 23 febbraio 2021 18:52:53 UTC+1, JohnMartens ha scritto:functional, but the problem is in the number of prints. If I want to print three copies of the same document I must use a loop for ...next.
Hope this can help you to get it done
John
DO WHILE (hWnd := FindWindow(NULL_PSZ, PSZ("Adobe Reader"))) = NULL_PTR
Sleep(500)
ENDDO
Sleep(5000)
// Close
PostMessage(hWnd, WM_CLOSE, 0, 0)
Op 15-2-2021 om 15:43 schreef aurora baccio:
good morning.
in the production of prints from vo I use a lot of word through a procedure inherited from previous programmers called 'compile word'. I use this procedure mainly in the printing of certificates and invoices. The procedure is very valid and
The actual printing of the created word document is done through 'shellexecute'.
The help request is: is there an alternative procedure to use word indicating the number of copies to print?
Another question: is there a way to close word at the end of the printing with shellexecute?
thanks
Aurora Baccio
good morning,
let me understand.
after the line of shellexecute I must insert the lines from you suggested. Simply. This closes the printing process.
Right?
Aurora Baccio
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 42:54:31 |
Calls: | 6,648 |
Files: | 12,193 |
Messages: | 5,329,632 |