Rich Text File (.RTF) -Can't copy multiple .rtf files (VB 6.0 Enterprise) 
Author Message
 Rich Text File (.RTF) -Can't copy multiple .rtf files (VB 6.0 Enterprise)

    Problem started when I discovered Open Append won't write new .rtf data
to an existing  Rich Text File (.rtf).    I tried dealing with the .rtf
files separately by creating new (Output) .rtf files then writing each to a
new .rtf file.

I confirmed this outside of vb through a DOSPrompt (e.g.,  COPY temp1.rtf +
temp2.rtf  temp3.rtf). All results end up the same with only the 1st file
copied.   The 2nd .rtf is always ignored.

I think, due to the end-of-file marker, I can't copy .rtf file to another
.rtf file.
Neither FileCopy or Shell Copy will work (i.e., where problem 1st began!).

Simply put, any ideas how I can append RTF data to an existing .RTF file?
Or better yet, through FileCopy?

Thanks.



Sun, 04 May 2003 03:00:00 GMT  
 Rich Text File (.RTF) -Can't copy multiple .rtf files (VB 6.0 Enterprise)
It might be because the first file has the EOF character and the rtf readers
won't load past EOF.

Quote:
> (e.g.,  COPY temp1.rtf + > temp2.rtf  temp3.rtf)

Is temp3.rtf's file size apparently larger?

How about loading both files into a string and rewriting all at once?


Quote:
>     Problem started when I discovered Open Append won't write new .rtf
data
> to an existing  Rich Text File (.rtf).    I tried dealing with the .rtf
> files separately by creating new (Output) .rtf files then writing each to
a
> new .rtf file.

> I confirmed this outside of vb through a DOSPrompt (e.g.,  COPY temp1.rtf
+
> temp2.rtf  temp3.rtf). All results end up the same with only the 1st file
> copied.   The 2nd .rtf is always ignored.

> I think, due to the end-of-file marker, I can't copy .rtf file to another
> .rtf file.
> Neither FileCopy or Shell Copy will work (i.e., where problem 1st began!).

> Simply put, any ideas how I can append RTF data to an existing .RTF file?
> Or better yet, through FileCopy?

> Thanks.



Tue, 06 May 2003 03:00:00 GMT  
 Rich Text File (.RTF) -Can't copy multiple .rtf files (VB 6.0 Enterprise)
Thanks for your reply.
The 3rd file is output from programmatically (VB6 exe) combining file1 +
file2.  Stringing the files together wont work because the { are not striped
out. I'm getting closer by striping out header { and trailer } -but not
quite there yet.

I think I'm on the right track.  I've played with the output in notepad but
still can't find the right format. There may be a relationship between
header and trailer.


Quote:
> It might be because the first file has the EOF character and the rtf
readers
> won't load past EOF.

> > (e.g.,  COPY temp1.rtf + > temp2.rtf  temp3.rtf)

> Is temp3.rtf's file size apparently larger?

> How about loading both files into a string and rewriting all at once?



> >     Problem started when I discovered Open Append won't write new .rtf
> data
> > to an existing  Rich Text File (.rtf).    I tried dealing with the .rtf
> > files separately by creating new (Output) .rtf files then writing each
to
> a
> > new .rtf file.

> > I confirmed this outside of vb through a DOSPrompt (e.g.,  COPY
temp1.rtf
> +
> > temp2.rtf  temp3.rtf). All results end up the same with only the 1st
file
> > copied.   The 2nd .rtf is always ignored.

> > I think, due to the end-of-file marker, I can't copy .rtf file to
another
> > .rtf file.
> > Neither FileCopy or Shell Copy will work (i.e., where problem 1st
began!).

> > Simply put, any ideas how I can append RTF data to an existing .RTF
file?
> > Or better yet, through FileCopy?

> > Thanks.



Tue, 06 May 2003 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Rich Text File (.RTF) -Can't copy multiple .rtf files

2. Copying text in .rtf format from one rich text box to another

3. Append RTF-Text in a existent RTF-File

4. Printing multiple copies of RTF file

5. save file as .txt or as .rtf in rich text box

6. How to print a Rich Text (RTF) file?

7. RTF Files (.rtf) inside a Resource file (.res)?

8. Saving Rich Text Box Content to .RTF File

9. How to print a Rich Text (RTF) file?

10. Saving Rich Text Box Content to .RTF file

11. save file as .txt or as .rtf in rich text box

12. Saving Rich Text Box to .RTF File

 

 
Powered by phpBB® Forum Software