473,486 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access uploaded document properties?

Hello! I'm trying to find out if it's possible to access the properties of
an document uploaded via the fileupload control? The end goal is to
dynamically insert the number of pages in a document into a database field
when the file is uploaded, along with the filename and mime property.

TIA!

--
Morgan
Web Developer
Portland, Oregon
Nov 16 '06 #1
4 1272
Depends ... what sort of document are you talking about? Word? PDF?
Publisher?

On Thu, 16 Nov 2006 13:57:01 -0800, Morgan <mo*******@noemail.noemail>
wrote:
>Hello! I'm trying to find out if it's possible to access the properties of
an document uploaded via the fileupload control? The end goal is to
dynamically insert the number of pages in a document into a database field
when the file is uploaded, along with the filename and mime property.

TIA!
--

Bits.Bytes.
http://bytes.thinkersroom.com
Nov 16 '06 #2
The upload limits files to word, excel, ppt and pdf (for the most part)
--
Morgan
Web Developer
Portland, Oregon
"Rad [Visual C# MVP]" wrote:
Depends ... what sort of document are you talking about? Word? PDF?
Publisher?

On Thu, 16 Nov 2006 13:57:01 -0800, Morgan <mo*******@noemail.noemail>
wrote:
Hello! I'm trying to find out if it's possible to access the properties of
an document uploaded via the fileupload control? The end goal is to
dynamically insert the number of pages in a document into a database field
when the file is uploaded, along with the filename and mime property.

TIA!
--

Bits.Bytes.
http://bytes.thinkersroom.com
Nov 16 '06 #3
Hello Morgan,

For those documents like word, excel, pdf, they're of binary format,
based on my research, it will require us launch the document's processing
application interface to get those properties(like calling Office COM
object through automation). However, it will be a bit expensive and not
recommended to do this in an server-side application like ASP.NET web
application.

BTW, do you think it possible that we use a rich client interface to let
the user upload such document? For example, use an ActiveX control to let
user upload such document, thus we can gain more control over the document
at client-side through some strong code(e.g automation through COM
interface). How do you think ?

Please feel free to post here if you have any other ideas or consideration.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

==================================================

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '06 #4
I agree. I tried something like this a while back and run into a
myriad of issues, ranging from mysterious messageboxes appearing on
the server and several dozen instances of winword.exe running that
failed to close!

Perhaps with the new Office 2007 you might be able to do this more
efficiently, but then again it will be a while before the new format
gains adoption.

In the meantime, does your scenario involve some level of trust in the
user? If so it may be an idea to avail a text box as well and ask them
to key in the number of pages which you can then use as an estimate.

On Fri, 17 Nov 2006 05:05:54 GMT, st*****@online.microsoft.com (Steven
Cheng[MSFT]) wrote:
>Hello Morgan,

For those documents like word, excel, pdf, they're of binary format,
based on my research, it will require us launch the document's processing
application interface to get those properties(like calling Office COM
object through automation). However, it will be a bit expensive and not
recommended to do this in an server-side application like ASP.NET web
application.

BTW, do you think it possible that we use a rich client interface to let
the user upload such document? For example, use an ActiveX control to let
user upload such document, thus we can gain more control over the document
at client-side through some strong code(e.g automation through COM
interface). How do you think ?

Please feel free to post here if you have any other ideas or consideration.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead

================================================= =

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscripti...t/default.aspx.

================================================= =

This posting is provided "AS IS" with no warranties, and confers no rights.
--

Bits.Bytes.
http://bytes.thinkersroom.com
Nov 17 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1833
by: paritycheck | last post by:
Hi Guys, I'm stuck with a terribly persistant "Access to the path *** is denied" problem. I'm trying to upload a foile using the file control. The code checks if a file of the same name as...
17
2784
by: Jelmer | last post by:
Hi, I am mildly familiar with ms access developement and I have been asked to port and document a ms access app. I expect the porting (97 to XP) to be fairly straightforward. However documenting...
41
6050
by: Ruby Tuesday | last post by:
Hi, I was wondering if expert can give me some lite to convert my word table into access database. Note: within each cell of my word table(s), some has multi-line data in it. In addition, there...
3
5226
by: Dale Walker | last post by:
After a recent hard disk failure, I've rebuilt my PC (clean install) and uploaded the backed-up database. However, I can now only open the database in read-only mode. I did not set any special...
5
2660
by: Lyle Fairfield | last post by:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/callnetfrcom.asp The Joy of Interoperability Sometimes a revolution in programming forces you to abandon all...
11
16884
by: Rob | last post by:
I know, I know, don't use frames. Well, I'm stuck with these frames and I'm trying to add functionality without a complete redsign. You can look at this as a nostalgic journey. Anyway, I've got...
6
3834
by: Bob Alston | last post by:
I am looking for others who have built systems to scan documents, index them and then make them accessible from an Access database. My environment is a nonprofit with about 20-25 case workers who...
3
19824
by: markus.rietzler | last post by:
i want to do (multiple) file upload(s) and display a progress bar. with firefox and safari it is no problem at all. only IE makes some problems. my script is based on ajax-uploader, which can be...
0
7094
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6964
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
6839
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5427
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4863
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4559
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3070
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
598
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
259
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.