473,652 Members | 3,059 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

filefield control and word document

All,

I have a asp.net c# webform that contains a filefield control where a user
is able to upload a MS Office .doc file. I would like check the file is a
..doc file does anyone know how this can be done? I dont want to just check
the extention of the file as this can be changed.

Please note MS Office will not be installed on the client machine thus the
content type of a .doc file will be application/octet-stream

Thanks
Msuk
Nov 19 '05 #1
0 769

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

Similar topics

2
2187
by: Rakesh Gupta | last post by:
Hi guys, Is it possible to host a .net user control in word, excel or powerpoint just as we would an ole control. We have a simple drawing .net user control, with simple menu etc. We'd like to call up from word the various plug-in controls and click and drag an area in word which will host our control. When we save the word document, the control's data will be saved and when we re-open the word document, the user control is init and the...
4
2540
by: Marion Neubauer | last post by:
Hi! I'm using the RTF2 Control from Lebans web site with MS Access 2000. It's working very good. Now i want to create a letter with the formated text of the RTF2 control in MS Word 2000, but it shows all the code inside and not the formating ... I'm not using vba-code, i'm making the letter by hand (as a serial letter in Word with the Access-DB as data source). How can i create a letter which looks like the report in Word? Is it possible...
1
1720
by: Aurimas Norkevicius | last post by:
I am trying to create an user control with ms word functionality. I succeded to create this control and it is functional in windows forms. I would like to use it in html pages using <object ..> tag. I can embed my controls into the web page easily until i do not reference word com object. Does anybody has any ideas how to create a control whitch could use word com object on client computer. Thank you.
2
1465
by: Mau | last post by:
Hi I have a little problem but I'm not able to solve it.... I'm writing an User control (ascx) I wanto to insert a FileField control (FileUpload in Webmatrix) to manage the upload of a file. The problem is that the containing form MUST have enctype = "multipart/form-data"
5
3825
by: lloyduh234 | last post by:
I need to display and allow the user to print a Word document from within a C# WinForm application. I'm using the ActiveX Browser control. The Word document displays correctly, but remains "locked" after the form and application is closed. If I try to delete the document, the message "File in use by Microsoft Word" is displayed. How do I correctly close and/or unload the document? Also, any example of displaying the printer icon and menu...
1
2250
by: JDeats | last post by:
If I embed an WebBrowser control on a WinForm I have the ability to load any ActiveX containable object into that control using this syntax: webBrowser1.Url = new Uri(@"c:\myfile.doc"); Using this approach, I can load a MS Word document into the browser and access the Word document object model like this: object obj = webBrowser1.Document;
5
3739
by: John Kotuby | last post by:
Hi all, This is my first time trying to creaet and use a custome Web Control in a Web Site project in ASP.NET 2.0 with VS 2005 and VB. I created the control in a separate Web Control Library project. The original code for that control was written in VS 2003 for .NET 1.1. I created a Web Project and pulled the VB module into the project. I compared the syntax to the VB template classs that was built and it looked very similar. I then...
3
2341
by: bhappy | last post by:
Hai All, I am using html filefiled control in my asp.net application.Im browising image and storing in database, upto here its working fine, but while loading the image to filefield from database im not getting any property to bind filefield like filefield1.text="" ....Is there any property like this...? Thanks, Aswath.
1
2733
by: pavanip | last post by:
Hi, I am developing one windows application in that i am trying to integrate microsoft word programatically. I used web browser control to enter text,saving it as a word document but the saved document is not showing page numbers,line numbers etc like normal word document. I want to display page numbers and line numbers to my word using web browser control.Can you please tell me is it the correct way to implement word in c# and can you...
0
8367
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6160
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4291
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.