| | |
Copying a microsoft word doc
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
•
•
if I ftp any work doc in binary format or asicc format and view the resulting file they are all fine. ftping the copied file that my binary creates does not work fine. So not too sure it's an ftp issue.
What o/s are you using to copy file?
Where did the input.doc file come from that you posted? Was it also FTPd to Windows machine before you posted it here? Or did you post it directly from a browser running on Solaris os ?
•
•
Join Date: Jun 2009
Posts: 14
Reputation:
Solved Threads: 0
I wrote two programs - one with an fstream read and write and the other has the code provided in the example above. Both produced the unreadable doc.
I really don't think it's anything to do with ftp. I can ftp any word doc from the server to the desktop and vice-versa in binary mode without any issues - the ftp'd file which has graphics, fonts etc can be opened successfully.
The original input file was ftp'd from the desktop on to the solaris server in binary format.
I really don't think it's anything to do with ftp. I can ftp any word doc from the server to the desktop and vice-versa in binary mode without any issues - the ftp'd file which has graphics, fonts etc can be opened successfully.
The original input file was ftp'd from the desktop on to the solaris server in binary format.
•
•
•
•
I am using Microsoft Vista Home Premium and VC++ 2008 Express compiler. No FPT involved. Are you using the code I posted or something you wrote ?
Where did the input.doc file come from that you posted? Was it also FTPd to Windows machine before you posted it here? Or did you post it directly from a browser running on Solaris os ?
The problem could also be one of Endianness. The byte order on windows and *nix computers are reversed. Maybe your os is writing the bytes out in reverse order during the copy process. To test that use your system's command-line copy function to make the copy, FTP to Windows and check it with MS-Word.
Last edited by Ancient Dragon; Jul 6th, 2009 at 5:48 pm.
![]() |
Similar Threads
- write into microsoft word (VB.NET)
- How to insert or embed a html file in to a Word doc ? (Python)
- How to write word doc in linux server with php code. (PHP)
- html to word doc (PHP)
- code for transferring contents of a word doc in a textbox (Visual Basic 4 / 5 / 6)
- Display word doc in vb.net (VB.NET)
- Adding Pictures into Microsoft Word 2003 using Automation (C++)
- Microsoft word starting up in OS 9 (Mac Software)
Other Threads in the C++ Forum
- Previous Thread: g++ linker error. Please help.
- Next Thread: [C++] Problem with changing contents of char[]
| Thread Tools | Search this Thread |
api array arrays based beginner binary bitmap c++ c/c++ calculator char class classes code compile compiler console conversion count data delete deploy desktop developer directshow dll download dynamic encryption error file forms fstream function functions game getline givemetehcodez google graph gui homeworkhelp homeworkhelper iamthwee ifstream input int integer java lib linkedlist linker linux list loop looping loops map math matrix memory news node number output parameter pointer problem program programming project proxy python read recursion recursive return string strings struct temperature template templates test text text-file tree unix url variable vector video visual visualstudio win32 windows winsock word wordfrequency wxwidgets






