VB6: Determine filesize of MS Office document by reading its contents

To see why I need this project, imagine a 10mb file full of random junk bytes ... but there's a small 2mb Office .DOC file somewhere near the middle, although it has junk data both before and after it.

LOCATING the Office document is easy ... simply search for the "ID/Magic" header that Office files use at their very start: 0xD0CF11E0

But now that I've located that I still need to "walk through it" to add up the size of each subsection of the .DOC file to calculate the overall FILESIZE, which is what I'm ultimately after.

And this is what I need you to do :-)

Please note the code must be in VB6, and not use any OLE or Office-related API calls or 3rd-party controls ... in other words, it just needs to use regular file i/o and string-related functions to do it's "walking" through the file.

Ive found these pages useful, but Office internals is all new to me so I hand it over to you!

[url removed, login to view]

[url removed, login to view]

Taidot: Microsoft, tietojärjestelmäarkkitehtuuri, Visual Basic, Windows Desktop

Näytä lisää: filesize, why use binary, why binary, what is binary search in c, what is binary search, what is a binary search, use of binary, code for binary search in c, code for binary search, c code for binary search, c binary search code, binary search in visual basic, binary search in c code, binary search code in c, binary search code c, binary search c code, openoffice project, ms office project, office 2013, MS-office, ms office, document reading, determine, Data sc, regular basic

Tietoa työnantajasta:
( 32 arvostelua ) Perth, Australia

Projektin tunnus: #4289315

Myönnetty käyttäjälle:


I'm used to work with binary data in VB6 and creating a small program to tell you the filesizes would not be a complex job. Please pm me if you have any questions or need any samples.

$250 AUD 4 päivässä
(3 Arvostelua)

12 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


I can deliver the script

$250 AUD 5 päivässä
(108 arvostelua)

By "Office document" do you mean Word .doc files prior to Office 2007 only? I would presume the 1st occurrence of the Null char is the end of the file. If both answers are yes, then this is doable. Regards, Svet.

$250 AUD 5 päivässä
(48 arvostelua)

Hello, I am a VB6, .NET, VBA and VSTO software developer. I have nine years of experience in programming. I rest-assure that I will complete the work on time and deliver you the completed work to your satisfaction.

$250 AUD 7 päivässä
(62 arvostelua)

Hi, VB6 Expert. Please share your file to check it. Thanks djain01

$200 AUD 5 päivässä
(57 arvostelua)

We are Expert in VB6.0 ,We will do this

$180 AUD 8 päivässä
(27 arvostelua)

Hi, VB6 expert having 8+ years of IT experience. Interseted in your project. Please see PM for more details.

$150 AUD 3 päivässä
(6 arvostelua)

Thanks for the opportunity to bid on your project. I am qualified by strong Ms Office and VB6 Skills. Based on this actuality, I can develop and supply the utility you need using VB 6 enterprise in a period not exce Lisää

$250 AUD 5 päivässä
(3 arvostelua)

Hi, I would like to subscribe for project completion.

$200 AUD 8 päivässä
(19 arvostelua)

Hi, I can do it. Please see PMB.

$200 AUD 10 päivässä
(5 arvostelua)

I've done some 'python-prototyping' and I know I can do this. It's been a while since I've had a project in VB6. But my minimalist approach should prove beneficial in picking it up again quickly and efficiently. I look Lisää

$140 AUD 7 päivässä
(5 arvostelua)

Good day! I have experience with core data manipulation, i can help you in this case. Ready to assist. Thanks.

$250 AUD 4 päivässä
(3 arvostelua)