SoftwareTipsandTricks Forum

Go Back   SoftwareTipsandTricks Forum > Operating Systems > Windows NT/2000/2003
User Name
Password


Buffering for MS Word

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes

  #1  
Old 11-07-2006, 04:17 AM
krishna_aloha Offline
Registered User
 
Join Date: Nov 2006
Posts: 1
Buffering for MS Word

Hi All,
1. im writing a application in which i'm hoocking the API of MS Word & using my method for Save As of MS Word.
In Save As i'm trying to buffer the data in _WriteFile API & my buffer size is 64 kb. Till 64 kb im buffering the data in buffer & then write it into file. If _WriteFile function is getting data more than 64 kb then im old buffer & then new buffer.
Buffering is right but im getting the error "the save failed due to out of memory of disk space (FilePath\Filename.doc)"
If im not using buffer then its working perfectly.

2.There server & client based application. User opens the file on server side from client side. Now user wants to save the file on client side(after changing the file or using SAVE AS). If i'm not using buffering then MS Word sends packet (for _WriteFile) of size like 1 kb or 10 kb or 0.5 kb or 30 kb ... etc.
So it takes time to send the data on client side. So i'm doing buffering (of 65 kb)& then send the data on client side. So it improves time efficiency.

3.One more thing i want to say....
You know when we write any thing in MS Word file using MS Word then it makes a *.tmp file & writes all thing in that & at last MS Word replaces the .*tmp into original file using _ReplaceFile.

I checked _WriteFile writes the data in *.tmp file successfully but in case of buffering it is not able to call _ReplaceFile API after _WriteFile.

Please tell me now where is the problem.

Thanks
Krishna
Reply With Quote

  #2  
Old 11-07-2006, 01:31 PM
Jazz's Avatar
Jazz Offline
Registered User
 
Join Date: May 2004
Location: London, England
Posts: 1,667
If you do not receive a resolution to your issue, you would be far better off posting on an appropriate forum, IMO, as this is a Windows NT/2000/2003 Operating System forum, not a Microsoft Word/Office forum. The bottom right of the the following page, to be precise: -

Microsoft Office Discussion Groups

Good luck.
__________________
An ounce of prevention is worth more than a pound of cure

Proud Member of the Alliance of Security Analysis Professionals (ASAP) 2006
Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 97 & Windows XP Home Compatability TheEmbalmer Windows XP 16 08-31-2006 01:24 PM
Outlook Express greyed out word wrap in Html Plado Software Problems and Useful Utilities 1 04-06-2006 03:07 PM
Word XP and Macrons freepchelp Windows XP 0 05-18-2005 08:30 PM
MS Works 2004 & Word 2002 burnsong Software Problems and Useful Utilities 0 03-16-2005 01:14 PM
Installing Word Kezzababy Software Problems and Useful Utilities 1 09-03-2003 08:46 AM



All times are GMT -5. The time now is 10:17 PM.


Designed by eXtremepixels. Powered by vBulletin Version 3.5.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 2.3.2 © 2005, Crawlability, Inc.