Sytze:
As you're coming to learn, depending on Microsoft to maintain their APIs and compatibility from version to version is a gamble.
Unless there's some reason the client wants to edit their invoices after sending, rather than saving in Word, have them save a PDF file. Test out your code to see if you can work with that. That's likely the quickest and simplest solution: get out of Office formats!
Second point, don't use '&' unless you absolutely have to: the '&' is shorthand for "recompile this entire line using the values at runtime" and invokes the entire parser and compiler. It is slower, and it also chokes if there are spaces or some special characters in the file name. Most of the time, you can use the parentheses () when just substituting a filename into a command.
https://msdn.microsoft.com/en-us/library/4kxhy0aa(v=vs.80).aspx
http://www.tomorrowssolutionsllc.com/Articles/Handling%20Code%20that%20Chang...
On Mon, Jul 25, 2016 at 11:46 PM, Sytze de Boer sytze.kiss@gmail.com wrote:
So I have used this approach for 20 years and it has always worked My client prepares an invoice using Word The file is "INV"+alltrim(str(invnum))+".DOC" E.g. INV12345.DOC
The system says append general rtfgen from &newfile LINK
It is then easy to print this on the report
It seems this no longer works with Win10
My thoughts at this time are to no longer store the data in a General field, and to print the DOC file as part of the report. BUT, I can't figure how to do that. I can print pictures, BMP's, Gif's etc, but not a Doc file
Can anyone throw some light on this, or offer some suggestions?
-- Kind regards, Sytze de Boer
--- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html
[excessive quoting removed by server]