Re: [U2] [UV] - word Document
Andy, Sorry to disagree but M$ do generally provide excellent documentation through MSDN - something I wish certain other vendors would copy. As for RTF - it is ugly but it is a published standard. And M$ have announced support for the OpenDoc formats in the new Office. Brian -Original Message- From: "Andy Pflueger"<[EMAIL PROTECTED]> Sent: 06/12/05 13:30:32 To: "u2-users@listserver.u2ug.org" Subject: Re: [U2] [UV] - word Document On 12/6/05, Bjorn Behr <[EMAIL PROTECTED]> wrote: > > The RTF Solution works 100%. (Just wish M$ would make their reading material > more understandable:)) Not to make this thread go off topic, but if M$ would make their reading material more understandable they wouldn't be able to monopolize the market anymore...that'd be a shame, now wouldn't it? ;) It would be nice if all word processing companies could come up with a "standard" and all use the OpenDocument format. That's my humble opinion FWIW. Andy -- The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it. Linus Torvalds --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ [Message truncated. Tap Edit->Mark for Download to get remaining portion.] --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] - word Document
On 12/6/05, Bjorn Behr <[EMAIL PROTECTED]> wrote: > > The RTF Solution works 100%. (Just wish M$ would make their reading material > more understandable:)) Not to make this thread go off topic, but if M$ would make their reading material more understandable they wouldn't be able to monopolize the market anymore...that'd be a shame, now wouldn't it? ;) It would be nice if all word processing companies could come up with a "standard" and all use the OpenDocument format. That's my humble opinion FWIW. Andy -- The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it. Linus Torvalds --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] - word Document
Thanks Craig. The RTF Solution works 100%. (Just wish M$ would make their reading material more understandable:)) Regards Bjorn -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Craig Bennett Sent: 05 December 2005 01:11 AM To: u2-users@listserver.u2ug.org Subject: Re: [U2] [UV] - word Document Hi Bjorn, > We generate a 'text/word' document from Universe. > > What I would like to know is does anybody know what characters I need to > place in the document so that when it is opened up in Word, it is in > landscape format? I don't think you will be able to do this from a text file -- word will obey line breaks but no other formatting. Have you had a look at the RTF format? It will work in any version of word and will let you do what you want. A file something like this should work: {\rtf1\ansi\deff0 {\fonttbl {\f0 Times New Roman;}} \paperw16834 \paperh11909 \margl1440 \margr1900 \margt1800 \margb1800 \landscape \f0\fs20 Line 1 Page 1\line Line 2 Page 1\page Line 1 Page 2\line Line 2 Page 2\page Line 1 Page 3\line Line 2 Page 3 } This is a three page file \line replaces CRLF and \page replaces page feed characters. Word takes care of wrapping. When using landscape in RTF, you need to specify paper size and margins (in this case A4). If you wanted to use a fixed width font replace Times New Roman with Courier. This information was taken from some of our RTF generating programs, but originally from the RTF Pocket Guide from O'Reilly. HTH, Craig --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] - word Document
Dave Taylor President Sysmark Information Systems, Inc. 49 Aspen Way Rolling Hills Estates, CA 90274 800-SYSMARK (800-797-6275) (O) 310-544-1974 (P) 800-339-1497 (F) 310-377-3550 Your Source for Integrated EDI Translation and DataSync Integration www.sysmarkinfo.com - Original Message - From: "Craig Bennett" <[EMAIL PROTECTED]> To: Sent: Sunday, December 04, 2005 3:10 PM Subject: Re: [U2] [UV] - word Document > Hi Bjorn, > > We generate a 'text/word' document from Universe. > > > > What I would like to know is does anybody know what characters I need to > > place in the document so that when it is opened up in Word, it is in > > landscape format? > > I don't think you will be able to do this from a text file -- word will > obey line breaks but no other formatting. > > Have you had a look at the RTF format? It will work in any version of > word and will let you do what you want. > > A file something like this should work: > > > {\rtf1\ansi\deff0 {\fonttbl {\f0 Times New Roman;}} > \paperw16834 \paperh11909 > \margl1440 \margr1900 \margt1800 \margb1800 > \landscape > \f0\fs20 > Line 1 Page 1\line Line 2 Page 1\page > Line 1 Page 2\line Line 2 Page 2\page > Line 1 Page 3\line Line 2 Page 3 > } > > This is a three page file \line replaces CRLF and \page replaces page > feed characters. Word takes care of wrapping. When using landscape in > RTF, you need to specify paper size and margins (in this case A4). > > If you wanted to use a fixed width font replace Times New Roman with > Courier. > > This information was taken from some of our RTF generating programs, but > originally from the RTF Pocket Guide from O'Reilly. > > HTH, > > > Craig > --- > u2-users mailing list > u2-users@listserver.u2ug.org > To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] - word Document
Hi Bjorn, We generate a 'text/word' document from Universe. What I would like to know is does anybody know what characters I need to place in the document so that when it is opened up in Word, it is in landscape format? I don't think you will be able to do this from a text file -- word will obey line breaks but no other formatting. Have you had a look at the RTF format? It will work in any version of word and will let you do what you want. A file something like this should work: {\rtf1\ansi\deff0 {\fonttbl {\f0 Times New Roman;}} \paperw16834 \paperh11909 \margl1440 \margr1900 \margt1800 \margb1800 \landscape \f0\fs20 Line 1 Page 1\line Line 2 Page 1\page Line 1 Page 2\line Line 2 Page 2\page Line 1 Page 3\line Line 2 Page 3 } This is a three page file \line replaces CRLF and \page replaces page feed characters. Word takes care of wrapping. When using landscape in RTF, you need to specify paper size and margins (in this case A4). If you wanted to use a fixed width font replace Times New Roman with Courier. This information was taken from some of our RTF generating programs, but originally from the RTF Pocket Guide from O'Reilly. HTH, Craig --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] - word Document
Bjorn Behr wrote: > We generate a 'text/word' document from Universe. > What I would like to know is does anybody know what > characters I need to place in the document so that when > it is opened up in Word, it is in landscape format? In order to get Word to do things you need to provide more than plain text, you need to provide specific instructions. Of course instructions need to be formatted, and there are different ways to format instructions for Word, including XML and HTML, using macros from existing Word docs/templates, or you can use Word add-ins to pump data to/from Word and U2. See an example of a product that was written (not currently offered anymore, subject to change based on "encouragement" from the market) to do this: http:// removethisNeebula-RnD .com/products/doc.htm For your purposes right now, you can use HTML as a base rather than plain text. Below this note is full HTML source which can be used as the base for a landscape document. Save this HTML page with a .DOC extension. Word will opens it, but to be considered a real Word Doc the user must SaveAs DOC. There is no getting around this: again, if you want Word to do special things you must somehow integrate with it. Rather than plain text, if you do use some method of using Word as a server and pumping data into it, then you can execute a macro like this to change the orientation: Sub SetLandscape() ActiveDocument.PageSetup.Orientation = wdOrientLandscape End Sub Combining the HTML provided below with macros, you could save your HTML as .DOC, then open Word and using command-line switches cause it to execute your macros, SaveAs DOC, then mail this final document to users. Lots of ways to skin this cat. Rather than using Universe as your base, it might make more sense to ask Universe to fire up a Windows process which will then read your text into a formatted Word document (template), perform the orientation change, then save the document where it can be used, e-mailed, etc. You can even tie this to standard Word mailmerge functions. You can still use your BASIC business rules, and data and everything else, it's just being initiated from somewhere else. For this, you can use tools like UO, UO.NET, mv.NET, or PDP.NET as the data conduit and for executing your BASIC code and returning data. My preference would be to use the more advanced features of the Visual Studio Tools for Office in conjunction with .NET, and then use mv.NET as the link to U2. I'll be happy to work on a project like this if requested. Before jumping into development, people might want to consider firing off an instance of Word every time they want to generate a document. Not only is this a very bad use of resources but it's subject to many issues. Opening an instance of Word (or other MS Office apps) in a Windows Service is a straight-forward process for someone who knows how, but there are MANY issues that need to be addressed, and Microsoft strongly discourages using these user-oriented products in a server context. Having a lot of experience in this area, I also discourage that sort of usage, and that's one of the reasons I no longer offer NebulaDoc as it was originally designed. HTH, Tony Gravagno Nebula Research and Development TG@ removethisNebula-RnD .com ~ http://www.w3.org/TR/REC-html40";> your content goes here --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
RE: [U2] [UV] - word Document
You might try saving the XXX.DOC as a new file type XXX.DOCL, then associate the .DOCL file type with word.exe run with a command line switch that referenced a macro to switch to landscape when it started. Thanks, Ross. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bjorn Behr Sent: Friday, December 02, 2005 3:52 AM To: u2-users@listserver.u2ug.org Subject: [U2] [UV] - word Document We generate a 'text/word' document from Universe. What I would like to know is does anybody know what characters I need to place in the document so that when it is opened up in Word, it is in landscape format? Many Thanks Bjorn Behr Programmer (TSD) Tel : +27 11 523 4202 Email : [EMAIL PROTECTED] Web Site: www.supergrp.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] - word Document
Bjorn Behr wrote: We generate a 'text/word' document from Universe. What I would like to know is does anybody know what characters I need to place in the document so that when it is opened up in Word, it is in landscape format? Many Thanks Bjorn Behr Programmer (TSD) Tel : +27 11 523 4202 Email : [EMAIL PROTECTED] Web Site: www.supergrp.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/ For the document to appear as landscape in Word you will need to change the page orientation property under Page Setup. I have never tried to do this from UniVerse but there is likely a way to do it. Ron White --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
Re: [U2] [UV] - word Document
On 12/2/05, Bjorn Behr <[EMAIL PROTECTED]> wrote: > We generate a 'text/word' document from Universe. > > What I would like to know is does anybody know what characters I need to > place in the document so that when it is opened up in Word, it is in > landscape format? I did a quick Google search and found something stating that (per Epson) there aren't any real ASCII codes to change the printed documents orientation to "landscape". However, I do believe there's a PCL compatible code for changing a printers orientation. Does the document have to be opened with Word or why not generate the document in PDF which to my understanding is very much PCL compliant? I'm not sure if a Word document is PCL compliant using the "text/word" document type. HTH, Andy -- The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it. Linus Torvalds --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/
[U2] [UV] - word Document
We generate a 'text/word' document from Universe. What I would like to know is does anybody know what characters I need to place in the document so that when it is opened up in Word, it is in landscape format? Many Thanks Bjorn Behr Programmer (TSD) Tel : +27 11 523 4202 Email : [EMAIL PROTECTED] Web Site: www.supergrp.com --- u2-users mailing list u2-users@listserver.u2ug.org To unsubscribe please visit http://listserver.u2ug.org/