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 please guide me how to assign page numbers and line numbers for web browser control. Thanks in advance Pavani
pavanip
Posts
-
Page numbers and Line numbers for Web browser control like MS word -
Full Screen problem with Media ElementHi, I have a Silverlight application in that one page i am having 1-8 videos will present.I placed each media element in seperate canvas. I want to fullscreen one particular media element with outer canvas. For Full screen individula video I have written the following code private void FullscreenChange(object sender, RoutedEventArgs e) { if (SLHost.Content.IsFullScreen) { ToolTipService.SetToolTip(fullscreen, "Full Screen"); ms1.ScaleX = c; ms1.ScaleY = d; SLHost.Content.IsFullScreen = false; } else { ToolTipService.SetToolTip(fullscreen, "Resize"); ms1.ScaleX = ms1.ScaleX * 5.90; ms1.ScaleY = ms1.ScaleY * 4.10; SLHost.Content.IsFullScreen = true; isFullScreen = true; flag = false; } } But here I am using same full screen button to resize video.If I use like this its working properly.But I dont want to use same button for Resize if I press Escape it will go to normal stage but its not working like that if I press Escape button it will go to noraml state but the video size is not reducing to original it is in bigger size only.Can you please guide me what is the mistake i have done.If I press Escape button it has to go to normal state and also it has to reduce the video size like previous size. Thanks in Advance Pavani
-
Apply Css for Silverlight controlsHi, I want to apply "Css" for Silverlight image control.I am having one silverlight image control in that left button down event i have to open asp.net form.For that aspx page i want to apply styles while opening that page.In left button down event i am calling java script function to call that aspx page.But from where i have to apply styles to open that page. If i use anchor tag to open popup window in normal aspx page I can use the following line to work it properly. <a style="font-family:Verdana; font-size:12px; font-weight:bold; text-decoration:none; color:#ffffff;" href="Contactus.aspx?TB_iframe=true&height=500&width=600" class="thickbox">Contact us</a> Here I am using class="thickbox" css class. But for now i want to open popup from code behind for that i have written following code in silverlight image control code behind. HtmlPage.Window.Invoke("login"); And I am calling that javascript function in aspx page like this. <script type="text/javascript"> function login() { var url = "http://219.91.199.132/Gateway/Login.aspx"; window.open( "UserLogin.aspx", 'window', 'width=630,height=620,background=silver,menubar=no, resizable=no') } </ script> Can anyone please help me how to apply css for silverlight controls. Thanks in advance Pavani
-
Media Elements usage based on some index value that matches with media element nameHi Mark, Thank you very much for your clear explanation.I solved my problem through your explanation.Now I got how to use media element references using list and dictionary.
-
Media Elements usage based on some index value that matches with media element nameHi Merk thank you for your response.Can you please explain me clearly how to create references for media elements and how to store those references in array or collection because i am new to develpoment.
-
Media Element source property in code behindthank you for your response.I resolved my problem by using mplayer.source=("Lake.wmv",UriKind.Relative) and I placed my video in web project ClientBin folder and directly using just video name.
-
Media Elements usage based on some index value that matches with media element nameHi, I am developing one application in that I have more than 20 media elements.Here is the example for 5 media elements mp1,mp2,mp3,mp4,mp5. And i am using i value from 1 to 20 based on the i value i have to use that corresponding media element.If i value is 2 i have to use mp2 and assign path to that mp2 source from code behind. Those all media elements are created by default through design.Please can anybody help me how to resolve this problem or any suggestions to achieve this task. Thanks in Advance Pavani
-
Media Element source property in code behindHi, I am developing one application in that I have more than 5 media elements. I want to assign path to media element source from database.For that I have created one silverlight application and there is a ClientBin in silverlight website, I have saved my uploaded videos in clientbin and that path in database. But from code behind if i assign the path its not showing anything. my sample code is mplayer.Source = new System.Uri(@"D:\sample\sample.Web\ClientBin\Lake.wmv", UriKind.Absolute); Can you please tell me is there any other way to assign path to source property or what is the mistake I have done in that code. Thanks in Advance Pavani
-
Parent Canvas mouse button effecting on Child CanvasI have written the mouse down,mouse up and mouse move events for parent canvas and child canvas to drag and drop those canvas. But If I drag parent cavas it is working fine if i try to drag child canvas parent canvas events are also firing.So,I have put e.handled=true in child canvas mouse down and mouse up events now its not firing parent canvas mouse down and mouse up but parent canvas mouse move event is firing.Because of that if I drag child canvas parent canvas is also dragging.Please help me how to stop firing parent canvas mouse move event.there is no handled=true in mouse move event to set.
-
Parent Canvas mouse button effecting on Child Canvasthank you for your response. I have written the mouse down,mouse up and mouse move events for parent canvas and child canvas to drag and drop those canvas. But If I drag parent cavas it is working fine if i try to drag child canvas parent canvas events are also firing.So,I have put e.handled=true in child canvas mouse down and mouse up events now its not firing parent canvas mouse down and mouse up but parent canvas mouse move event is firing.Because of that if I drag child canvas parent canvas is also dragging.Please help me how to stop firing parent canvas mouse move event.there is no handled=true in mouse move event to set.
-
Parent Canvas mouse button effecting on Child CanvasHi, I am developing one silverlight application in that I placed one main canvas(LayoutRoot) and there are 6 child canvas are there with videos.I have written mouse events for main canvas and child canvas seperately.Purpose when I drag and drop main canvas it will drag entire canvas with child canvas and if I drag one of the child canvas it shouldn't drag main canvas too only drag one that particular canvas.I am facing problem that if I drag main canvas its working good and if I try to drag one of those child canvas it is dragging main canvas also.Can you please anybody help me how to stop main canvas mouse button events wont effect on child canvas. Thanks in Advance Pavani
-
Binding images to datagrid from database using silverlightIn datagrid I used the following attribute to call that function LoadingRow="dGrid_LoadingRow" But i am not getting when it will be fired and the code executes.I have written the following code in that event private void dGrid_LoadingRow(object sender, DataGridRowEventArgs e) { FrameworkElement ele = dGrid.Columns[4].GetCellContent(e.Row); string url = "http://localhost:52614/Display.ashx"; Uri imageUri = new Uri(url, UriKind.RelativeOrAbsolute); (ele as Image).Source = new BitmapImage(imageUri); } But its not executing when i debug it line by line. Or can you please tell me tell me how to bind images to datagrid in silverlight.
-
Binding images to datagrid from database using silverlightHi, I am developing one application in that I stored images from xaml page using generic handler and i am retrieving image from database using generic handler.I have written the database code to retrieve image in generic handler and i am calling that handler page in xaml page.Retrieving the image is working for me now.But my problem is how to retrieving images from DB and bind it to Datagrid in silverlight.And how to call data grid function and where to call that function.I referred the following link to bind images to datagrid but its not working for me and i am not getting how they are calling datagrid function. http://www.dotnetcurry.com/ShowArticle.aspx?ID=264&AspxAutoDetectCookieSupport=1 Please can anybody help me solve this problem. Thanks in advance Pavani
-
Throwing videos using SilverlightHi, I am developing one application using silverlight and .Net.There are some videos to watch.There are some features like rotate,scaling video using silverlight.Now I want to develop feature Throw videos using silverlight like in the following site. http://www.etsy.com/color.php?ref=fp\_nav\_colors.If u open that link there are some bubbles,if you click those bubles you will find some images.In that we can throw those images to anywhere. I want to develop that feature using silverlight in my site.Can please anyone help me how to do that task using silverlight and .Net. Thanks in advance Pavani
-
Use .XAP file in ASP.Net WebsiteHi, I am facing problem with using .XAP file in ASP.Net Website. I have written the following code to use .XAP in .Aspx page
--%>
If i write like that is only assigned to particular row but i want it for whole page. If I write control after form tag then the silverlight content is assigned above the table and the table data seperated from silverlight content. Please see the below link to drag and drop videos but that drag and drop videos is not working outside that row only within that row. http://219.91.199.132/silverl/home.aspx Can you please guide me how to user .XAP file to whole aspx page. Thanks in Advance Pavani
-
Save As Dialog Box in Asp.Net ApplicationHi, I want to implement Save As Dialog Box Asp.Net Application but there is no specific save dialog file and open dialog file in toolbox. I tried the following code to open Save as Dialog box Response.ContentType = "image/jpeg"; Response.AppendHeader("Content-Disposition", "attachment; filename=image.jpg"); Response.TransmitFile(Server.MapPath("~/images/")); But in this I am specifying specific file to save but i need to enter the file name dynamically by the user to save it in specified path. Can anyone please help me how to resolve this problem. Thanks in Advance Pavani
-
Drag and Drop Feature in Silverlight Media Player Controlok. thank you i posted it in asp.net,dotnet spider,c# corner forums but i didn't get any reply from those forums. And I tried in another way. I added new silverlight project in sasp.net website and I created media element control in xaml file for drag and drop functionlaity and I used that .XAP file in my aspx page when i run in my local system that page running and i am trying to host it in my iis server and there is no silverlight when i open that link it is showing blank space in place of that xaml content. If you know the reason please suggest me how to host my application in server.
-
Drag and Drop Feature in Silverlight Media Player ControlI used Media Player control in Asp.Net but i am not getting how to Drag and Drop Video to desired location using that media Player control.
-
Drag and Drop Feature in Silverlight Media Player ControlHi, I am new to Silverlight Applications. I created one media player control to play video in asp.net website.I want to drag and drop that media player control to desired place when we run the application but there are no events to drag and drop the video. I tried media element control its working fine for drag and drop functionality but i want that feature in media player control. Is there any other alternatives to drag and drop videos to desired place when we execute the application. Thanks in Advance Pavani
-
Silverlight MediaElement to play videothank you its working now I added reference to my video in app's XAP folder. I used the Relative URI source='/a_video.wmv' I have one doubt here I created silvetlight project now i want to create webapplication and i want to use silverlight media elements etc and for web application where i have to place my video to play. please help me if you know and how to host silverlight projects?