|
|
I have used the following code for reading word document. But it reads only text data and not displaying the images in the word document.
string docname = dr["docname"].ToString();
string path= Server.MapPath("festival_doc");
string m = path + "//"+docname;
Word.ApplicationClass wordapp = new Word.ApplicationClass();
object file = m;
object nullobj = System.Reflection.Missing.Value;
Word.Document doc1 = wordapp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);
TextBox1.Text = doc1.Content.Text;
doc1.Close(ref nullobj, ref nullobj, ref nullobj);
regards, Rajesh
|
|
|
|
|
Your last message is just a message below this on the same page and still you reposted it.
This is very RUDE.
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
Rather than posting a new thread, you should replyed it on my question.
|
|
|
|
|
I have used the following code for reading word document. But it reads only text data and not displaying the images in the word document.
string docname = dr["docname"].ToString();
string path= Server.MapPath("festival_doc");
string m = path + "//"+docname;
Word.ApplicationClass wordapp = new Word.ApplicationClass();
object file = m;
object nullobj = System.Reflection.Missing.Value;
Word.Document doc1 = wordapp.Documents.Open(ref file, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj, ref nullobj);
TextBox1.Text = doc1.Content.Text;
doc1.Close(ref nullobj, ref nullobj, ref nullobj);
regards, Rajesh
|
|
|
|
|
I have table name news in that there is one date,heading field
for example :
column Name:
date newheading
07/08/2009 newsheading1
07/08/2009 newsheading1
07/08/2009 newsheading2
06/08/2009 newsheading106
06/08/2009 newsheading206
I need the output like this
07/08/2009
newsheading1
newsheading1
06/08/2009
newsheading106
newsheading206
For your reference see this url
http://www.indiainfoline.com/stocks/innersection.asp?lmn=2&cat=1
I need the output similar to the above url
|
|
|
|
|
Then, what is your problem ? did you tried it using Repeater Control ? Another approch that you can use, that is using, XSLT.
|
|
|
|
|
Simply proceed with repeater control. In its item template put some HTML table and then fill its cells with desired information just by putting inline aspx tags.
|
|
|
|
|
You alreayd know that you have to use grid or repeater. I can suggest you another approach of trying out several news controls available in the market (like DevExpress[^], ASPAlliance[^], some opensource[^] etc.).
These were few examples which you can find out after Googling..Enjoy
|
|
|
|
|
Just use ListView or Repeater and make your own html.
User ItemTemplate to render your html.
|
|
|
|
|
I am using streams to read data from a word document and display it in a web page. But the output displays only texts and not displaying images in the word document.
Can any one help me.....
Regards,
Rajesh
|
|
|
|
|
How you are reading the content from Word file ? And how displaying it in page ?
|
|
|
|
|
Can any one help me out in using the ajax slide show extender
how to write the webservice method
modified on Saturday, August 8, 2009 7:11 AM
|
|
|
|
|
4anusha4 wrote: Can any one help me out in using the ajax slide show extender
how to write the webservice method
Here is one simple example of it,
AJAX SlideShowExtender Control [^]
Hope this will help you
|
|
|
|
|
I got an error
Microsoft JScript runtime error: Sys.InvalidOperationException: Can't add a handler for the error event using this method. Please set the window.onerror property instead.
could u solve this
|
|
|
|
|
|
thank u
any way i got it i replaced the dll file with the latest version
|
|
|
|
|
Great.
|
|
|
|
|
i want to use adobe flash palyer in my web page to display .flv videos.
i have downloaded player..
how can i use it in my project.....
|
|
|
|
|
AhmedNisar82 wrote: how can i use it in my project.....
Results 1 - 10 of about 1,250,000 for insert flash object asp.net[^]. (0.24 seconds)
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
hii..
i hav populated a html editor from database at pageload event.
now i hav edited the data in html editor and thrugh button click m tryin to update the database.
but its not workin properly.it shows the same data back.I hav written the code n query properly.....
can anybody let me know why its happening....thnks in advanc....
the code is:
protected void Page_Load(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Select Description From SubMenu Where (SubMenuId=100)";
SqlDataReader dr = null;
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
dr = cmd.ExecuteReader();
if (dr.Read())
{
Editor1.Content = dr["Description"].ToString();
}
conn.Close();
}
protected void btnsubmit_click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Update SubMenu Set Description='"+ Editor1.Content +"' Where (SubMenuId=100)";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
}
|
|
|
|
|
After update data then execute again select command to see changes.
I Love T-SQL
"Don't torture yourself,let the life to do it for you."
If my post helps you kindly save my time by voting my post.
www.aktualiteti.com
|
|
|
|
|
i hav checked it makes no difference...
|
|
|
|
|
Clicking on the submit button posts back the page which again takes the data from database.
You should rather do it like this. i.e. check for the ispostback property.
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Select Description From SubMenu Where (SubMenuId=100)";
SqlDataReader dr = null;
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
dr = cmd.ExecuteReader();
if (dr.Read())
{
Editor1.Content = dr["Description"].ToString();
}
conn.Close();
}
}
protected void btnsubmit_click(object sender, EventArgs e)
{
SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["Jajaipur"].ConnectionString);
string str = "Update SubMenu Set Description='"+ Editor1.Content +"' Where (SubMenuId=100)";
SqlCommand cmd = new SqlCommand(str, conn);
conn.Open();
cmd.ExecuteNonQuery();
conn.Close();
}
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
thnks...it worked.....
|
|
|
|