|
i used StreamReader to read a txt file.
Same,i want to read a .DOC file from ASP.NET.
can anyone help me in this.
Sathiyaraj Ganesan
|
|
|
|
|
use Microsoft Word Object Library
to read and write Word documents
Navi
|
|
|
|
|
is it possible to use Microsoft Word Object Library in Web Application
Sathiyaraj Ganesan
|
|
|
|
|
|
Try this
Dim Fname As String = "D:\R&D\Notes.doc"
Response.ClearContent()
Response.ClearHeaders()
Response.ContentType = "application/msword"
Response.WriteFile(Fname)
Response.Flush()
Response.Close()
Thanks & regards,
Suresh Dayma
-- modified at 8:59 Saturday 2nd September, 2006
|
|
|
|
|
Can any one explain me how to use navigation controls like MENU/TREE controls, Using AJAX-ATLAS
The page should not post back to server and it should navigate to new page when MENU/TREE is cliked
Thanks
DARE DEVIL NEVER DARES
|
|
|
|
|
I want to make file upload control,which uploads ppt file on the server in WPF.I have code in asp.net 2.0,but I want code in XAML
|
|
|
|
|
You can see Lauren's post[^]
|
|
|
|
|
I have already tried for that.But it can't upload file.Contents of it only displays in Big Textbox.I want to upload PPT file.
|
|
|
|
|
how do you find out which button is clicked among many in a page?or what code should you write in page_Load method to find out which button was clicked?
|
|
|
|
|
You may use CommandName property of the Button Server control. Each Button has the unique Command Name. Ok.
Then in Page_Load event, u may check for the Particular button using e.CommandName property.
for ex, if(e.CommandName == "btn1")
Hope it works fine with u.
Regards,
Jay
|
|
|
|
|
Thank You Jay. That was really helpful.i have another question...if there are nN number of buttons in a datagrid and u want 2 know which button was clicked then what do u do?
|
|
|
|
|
i am lost. i am using asp.net 1.1 with c#.
how can i call a funtion from c# using enter.
can someone point me to the right direction?
i can call javascript but how about a function from c#.
tnx.
|
|
|
|
|
You have to make a request to the server. Either by doing a postback, or using AJAX.
---
b { font-weight: normal; }
|
|
|
|
|
I use DropDownList edit DataGrid data, There have 4 columns using DropDownList for edit data. Generally I only want to change one column data. But when I enter editing mode, the all DropDownList’s index change to zero, only I want to change one column! How I set all DropDownList Index default to right value.
|
|
|
|
|
I am not sure whether i have understood the problem correctly but if you want to set some value of the dropdownlist control as selected then this you can do in OnItemDataBound event of the datagrid.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Thanks for your help.
I just want to set a default dropdownlist selectedindex,not use the default zero.
I tried in OnItemDataBound event at edit mode ,but I can't get dropdownlist control.Could you give me more tips?
thank you
|
|
|
|
|
In that event first you have to check for the edit mode and then you have to find the control by the ID you have given and once you find the control you can set the selected item in that. Hope this makes things a bit clear.
Best Regards,
Apurva Kaushal
|
|
|
|
|
Ok,Thank you.I will try this way right now.
|
|
|
|
|
always welcome..
Best Regards,
Apurva Kaushal
|
|
|
|
|
My website has a listing of pdf files that clients can access by opening them in the browser or saving them to their hard drive and then opening it.
Now they want to be able to print the pdf files altogether at one time through the website. How can I print multiple pdf files at the same time or one after the other without any user interaction in asp.net 2.0?
I have thought of merging all the pdf files in to one pdf file and then displaying it in-browser where the user can then hit the print button and print in essence all the documents at once but this approach is not feasible because if the number of pdf documents is too high or if the individual pdf files are too large in size, the server will hang and the session might time out plus there are IO exceptions to consider, etc, etc.
I would appreciate any help or advice. Thanks.
|
|
|
|
|
hi,
are you creating a pdf file using asp.net,c# . i am asking u this question because i have a one api which create pdf file through coding so u can take print out of whole pdf file. if u are fine with this i will send u the api.
cheers....
|
|
|
|
|
Hi,
no i am not creating the pdf files, but if you can send me the api anyways i will appreciate it. thanks. just pm me and i'll give you my email address.
|
|
|
|
|
Greetings all,
I have a DetailsView, and it works fine when it comes to displaying my details. I am databinding the DetailsView to a DataTable that I am building by combining parts of the MembershipUser and the Profile objects. Now my problem is that when I edit the information and tell the DetailsView to Update I have no idea how to actually retrieve programatically what the new values for the fields in the DetailsView are. The Event Arguments of the Update command contains a NewValues and OldValues properties but neither of them contains anything after an update. I'm really stuck here. Any Ideas?
Thanks in advance.
--Peter
|
|
|
|
|
I have dataset that I'd like to stream to the browser as an rss feed. The dataset has a method .WriteXML that I can use, and I have an .xslt file to transform the xml to rss, but how I'm not sure how to put it all together to stream the data to the browser as an rss feed.
My google searches yielded little. Does anyone have ideas on how to do this?
|
|
|
|