Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13238 > unrolled thread

shellexecute con word

Started byaurora baccio <aurorabaccio@gmail.com>
First post2021-02-15 06:43 -0800
Last post2021-03-01 19:42 +0100
Articles 7 — 3 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  shellexecute con word aurora baccio <aurorabaccio@gmail.com> - 2021-02-15 06:43 -0800
    Re: shellexecute con word "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-02-17 17:29 +0100
    Re: shellexecute con word aurora baccio <aurorabaccio@gmail.com> - 2021-02-23 09:41 -0800
      Re: shellexecute con word "Wolfgang Riedmann" <wriedmann@gmail.com> - 2021-02-24 13:49 +0100
    Re: shellexecute con word JohnMartens <martens@tennishulp.info> - 2021-02-23 18:52 +0100
      Re: shellexecute con word aurora baccio <aurorabaccio@gmail.com> - 2021-02-26 04:50 -0800
        Re: shellexecute con word JohnMartens <martens@tennishulp.info> - 2021-03-01 19:42 +0100

#13238 — shellexecute con word

Fromaurora baccio <aurorabaccio@gmail.com>
Date2021-02-15 06:43 -0800
Subjectshellexecute con word
Message-ID<9bc2681c-a5fa-4d48-aa51-dc72d9c4c12ao@googlegroups.com>
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

[toc] | [next] | [standalone]


#13239

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2021-02-17 17:29 +0100
Message-ID<i94ujfFu834U1@mid.individual.net>
In reply to#13238
Hi Aurora,

I don't know who you are using that.
If it is something I wrote years ago for a guy from Sicily (that in the
end called me a "razzista xenofobo"), then you have to rewrite that.
Are you compiling a RTF file and printing that?

Wolfgang


aurora baccio wrote:

> 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



-- 

[toc] | [prev] | [next] | [standalone]


#13245

Fromaurora baccio <aurorabaccio@gmail.com>
Date2021-02-23 09:41 -0800
Message-ID<018fd50a-a1fa-440c-aceb-2417fb6acbd8o@googlegroups.com>
In reply to#13238
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

[toc] | [prev] | [next] | [standalone]


#13249

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2021-02-24 13:49 +0100
Message-ID<i9n0amFgmakU1@mid.individual.net>
In reply to#13245
Buon giorno Aurora,

you can "drive" Word completely from VO using COM, as Word has a very
powerful API (like all the Office applications).
I'm using it in several projects not only to print, but also to fill
out fields.
And of course you can also close down it after use.

IMHO That would be the best option.
But I have to prepare a sample, if you need it.

Wolfgang

P.S. I have no problems at all with people because of their nationality
- your question about compilaWord only let me remember this person.

aurora baccio wrote:

> 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



-- 

[toc] | [prev] | [next] | [standalone]


#13246

FromJohnMartens <martens@tennishulp.info>
Date2021-02-23 18:52 +0100
Message-ID<s13fdj$5v2$1@dont-email.me>
In reply to#13238
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 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
> 

[toc] | [prev] | [next] | [standalone]


#13255

Fromaurora baccio <aurorabaccio@gmail.com>
Date2021-02-26 04:50 -0800
Message-ID<fba9d641-e0c7-416b-9c34-9174102922b4o@googlegroups.com>
In reply to#13246
Il giorno martedì 23 febbraio 2021 18:52:53 UTC+1, JohnMartens ha scritto:
> 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 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,
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

[toc] | [prev] | [next] | [standalone]


#13266

FromJohnMartens <martens@tennishulp.info>
Date2021-03-01 19:42 +0100
Message-ID<s1jcj6$cde$2@dont-email.me>
In reply to#13255
That's what worked for me when I printed .PDF's with Adobe
Hope it will work for Word as well ...
john

Op 26-2-2021 om 13:50 schreef aurora baccio:
> Il giorno martedì 23 febbraio 2021 18:52:53 UTC+1, JohnMartens ha scritto:
>> 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 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,
> 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
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web