Formatting problem with InsertFile

P

Patrick Simons

I have several RTF-files created with Crystal Reports 8.5. If I open a
RTF-file directly with MS Word XP SP2, everything's fine, f.ex. all 3
pages are correctly formatted.
But if I open Word and then go to Insert/File, the first page differs
from my first example, the section break comes later... and the result
is that I have 4 pages now.

For me, InsertFile should take the same document definitions as
Fileopen.

Any ideas,

Patrick Simons
 
R

Robert M. Franz (RMF)

Hi Patrick,

Patrick said:
I have several RTF-files created with Crystal Reports 8.5. If I open
a RTF-file directly with MS Word XP SP2, everything's fine, f.ex.
all 3 pages are correctly formatted.
But if I open Word and then go to Insert/File, the first page
differs from my first example, the section break comes later... and
the result is that I have 4 pages now.

For me, InsertFile should take the same document definitions as
Fileopen.

in Word, definitely NOT necesarily! :)

The problem could be with styles: If you open a file, Word lays it out
with the style-definitions present in the file. But if you already have
a document and insert another one into it, the target-documents' styles
take precedence (this can account for a lot of variation in appearance
and pagination; and we haven't even got to numbering yet! :)).

Could you check any styles in your normal.dot (or whichever other
template you are creating a new document from before you insert your RTF
file with the styles in that very RFT file ...?

2cents
..bob
...Word-MVP
 
P

Patrick Simons

Hello Robert,

Thanks for your reply. Does there exist a way to get the styles from
the existing RTF file without opening it directly. (Maybe via VBA?)

Patrick
 
R

Robert M. Franz (RMF)

Hi Patrick,

Patrick Simons wrote:
[..]
Thanks for your reply. Does there exist a way to get the styles from
the existing RTF file without opening it directly. (Maybe via VBA?)

you can copy styles via the organizer. I'm sure this is possibly via
VBA, too, but that's not (at all :)) my area of expertise, sorry ...

Greetinx
..bob
...Word-MVP
 
F

Francis Dion

Hi,

You might want to consider XpertDoc as an alternative solution to
using Crystal Report, exporting to RTF and then assembling various
files into one.

XpertDoc can take multiple data sources and generate all your current
reports as a single RTF file. And because the design environment is
MS-Word itself, you know exactly what your report is going to look
like.

You can check it out at www.xpertdoc.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top