Re: [U2] spool images going to word documents

2005-07-05 Thread TPellitieri
Bob Witney <[EMAIL PROTECTED]> wrote on Mon, 4 Jul 2005 14:20:07 +0100

> I am building an email as follows to send a report as a word
> attachment via sendmail from aix 5.2 (Universe 10) ...

Okay...something "funky" happened with this in the digest.  The problem you
reported appeared there!  After the line containing [if gte mso 9], the
entire rest of the digest is one long string of characters.

Don't know why, but perhaps there's an embedded special character turning
things "weird".  It might be the xml tag, but that doesn't make sense to
me...

--Tom Pellitieri
  Century Equipment
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] spool images going to word documents

2005-07-05 Thread Bob Witney
Many thanks

The  on the end of each line works fine

Bob

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Larry Hiscock
Sent: 04 July 2005 17:47
To: u2-users@listserver.u2ug.org
Subject: RE: [U2] spool images going to word documents


It's not a cr/lf problem, per se - HTML/XML ignores CRs and LFs.  You have a
couple of choices:

1) Convert all of the LF (or CR/LF) characters in DATAREC to , which
will force a break between each line

2) Wrap DATAREC in a CDATA tag, which will tell the XML parser that it is
data and not to parse it as if it were HTML/XML.

The syntax for #2 would look like this:

--snip--

  REC<-1> = ''
  REC<-1> = ''
  REC<-1> = ''

--snip-- 

This will also avoid having to escape any other illegal XML characters (eg
<, >, &, ', ", etc).  

Larry Hiscock
Western Computer Services


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Witney
Sent: Monday, July 04, 2005 6:20 AM
To: U2-Users (E-mail)
Subject: [U2] spool images going to word documents

I am building an email as follows to send a report as a word attachment via
sendmail from aix 5.2 (Universe 10)

REC<-1> = ' = 'xmlns:w="urn:schemas-microsoft-com:office:word"'
REC<-1> = 'xmlns="http://www.w3.org/TR/REC-html40";>'
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = '

RE: [U2] spool images going to word documents

2005-07-04 Thread Larry Hiscock
It's not a cr/lf problem, per se - HTML/XML ignores CRs and LFs.  You have a
couple of choices:

1) Convert all of the LF (or CR/LF) characters in DATAREC to , which
will force a break between each line

2) Wrap DATAREC in a CDATA tag, which will tell the XML parser that it is
data and not to parse it as if it were HTML/XML.

The syntax for #2 would look like this:

--snip--

  REC<-1> = ''
  REC<-1> = ''
  REC<-1> = ''

--snip-- 

This will also avoid having to escape any other illegal XML characters (eg
<, >, &, ', ", etc).  

Larry Hiscock
Western Computer Services


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bob Witney
Sent: Monday, July 04, 2005 6:20 AM
To: U2-Users (E-mail)
Subject: [U2] spool images going to word documents

I am building an email as follows to send a report as a word attachment via
sendmail from aix 5.2 (Universe 10)

REC<-1> = ' = 'xmlns:w="urn:schemas-microsoft-com:office:word"'
REC<-1> = 'xmlns="http://www.w3.org/TR/REC-html40";>'
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = '

RE: [U2] spool images going to word documents

2005-07-04 Thread Brian Leach
Bob,

Insert  between each line.

Brian
> 
> I suspect that I need to pass a line feed of some sort into 
> word but the usual char(10) and char(13) do not do the trick
> 
> Has anyone seen this before and found a fix ?
> 
> Many thanks
> 
> Bob 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


RE: [U2] spool images going to word documents

2005-07-04 Thread DAWES, Ray
Could you pipe the report through unix2dos to add the line feeds?

Ray.

-Original Message-
From: Bob Witney [mailto:[EMAIL PROTECTED]
Sent: 04 July 2005 14:20
To: U2-Users (E-mail)
Subject: [U2] spool images going to word documents


I am building an email as follows to send a report as a word attachment via
sendmail from aix 5.2 (Universe 10)

REC<-1> = ' = 'xmlns:w="urn:schemas-microsoft-com:office:word"'
REC<-1> = 'xmlns="http://www.w3.org/TR/REC-html40";>'
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = '

RE: [U2] spool images going to word documents

2005-07-04 Thread colin.alfke
Bob;

I suspect that it's something to do with how your DATAREC is stored.
Either it's got only the unix format char(10) that you need to change to
char(10):char(13) or they are @VM's. You can try sending it as straight
html with   tags or using a hex editor to see what character
is actually at the end of the line.

hth

Colin Alfke
Calgary, AB
 

>-Original Message-
>From: Bob Witney
>
>I am building an email as follows to send a report as a word 
>attachment via sendmail from aix 5.2 (Universe 10)
>
[snip]
>REC<-1> = ''
>   REC := @FM:DATAREC - where DATAREC is the record from the spoolq
>   REC<-1> = ''
>   REC<-1> = ''
>
>It arrives as a word attatchment, the only problem is that 
>when i open it with Word i have one lone string of characters 
>and have lost all the line breaks
>
>I suspect that I need to pass a line feed of some sort into 
>word but the usual char(10) and char(13) do not do the trick
>
>Has anyone seen this before and found a fix ?
>
>Many thanks
>
>Bob 
---
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/


[U2] spool images going to word documents

2005-07-04 Thread Bob Witney
I am building an email as follows to send a report as a word attachment via 
sendmail from aix 5.2 (Universe 10)

REC<-1> = ' = 'xmlns:w="urn:schemas-microsoft-com:office:word"'
REC<-1> = 'xmlns="http://www.w3.org/TR/REC-html40";>'
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = ''
REC<-1> = '