Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Writing to a File
Topic Summary: Page Breaks, Italics and Bold Fonts when writing to a file
Created On: 29-Oct-2004 16:11
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
Answer This question was answered by Paul Worrall, on Thursday, November 4, 2004 6:51 PM

Answer:
Hi Kristie

1. Your script writes to an ".xls" file which is usually associated with MS Excel, not MS Word

2. The MS Word (and for that matter MS Excel) file formats are proprietary formats, the details of which are not (as far as I know) published by Microsoft, it is therefore not practical to write one of these formats directly.

3. If it is an MS Word document that you require, you could write your data in RTF format, which is a published format that MS Word can read, or alternatively write an exporter that drives MS Word via OLE. Both of these options would allow you to insert the formatting you require, but neither method is easy.

4. When posting code to a forum, it makes it easier for readers if you just post a few key lines which illustrate your problem.
 29-Oct-2004 16:11
User is offline View Users Profile Print this message


Kristie Carpenter

Posts: 3
Joined: 29-Oct-2004

Hi everyone,
I am writing a dxl script that writes to a file using a stream. I am looking for the following tags:

1) Italics

2)Bold

3)Page Break

4)Section Break

I am creating a word document and would like these things to be in my exported document. Is this possible?
Report this to a Moderator Report this to a Moderator
 2-Nov-2004 15:34
User is offline View Users Profile Print this message


Paul Worrall

Posts: 87
Joined: 30-Sep-2003

Answer Answer
Hi Kristie

1. Your script writes to an ".xls" file which is usually associated with MS Excel, not MS Word

2. The MS Word (and for that matter MS Excel) file formats are proprietary formats, the details of which are not (as far as I know) published by Microsoft, it is therefore not practical to write one of these formats directly.

3. If it is an MS Word document that you require, you could write your data in RTF format, which is a published format that MS Word can read, or alternatively write an exporter that drives MS Word via OLE. Both of these options would allow you to insert the formatting you require, but neither method is easy.

4. When posting code to a forum, it makes it easier for readers if you just post a few key lines which illustrate your problem.

Edited: 2-Nov-2004 at 16:01 by Paul Worrall
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.