Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

sarah_chandran

@sarah_chandran
About
Posts
44
Topics
21
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Programmatically access powerpoint file using c# without using office dll
    S sarah_chandran

    Hi, I have the code to programmatically convert slides in powerpoint to images and save in local machine. But this is using the below code that uses the office dll.

    using Microsoft.Office.Core;
    using Microsoft.Office.Interop.PowerPoint;
    public partial class _Default : System.Web.UI.Page
    {
    protected void Page_Load(object sender, EventArgs e)
    {
    var app = new Microsoft.Office.Interop.PowerPoint.Application();
    var pres = app.Presentations;
    var file = pres.Open(@"C:\test\test.pptx", MsoTriState.msoTrue, MsoTriState.msoTrue, MsoTriState.msoFalse);
    file.Export(@"C:\testNew.png", "PNG");
    }
    }

    I want to do the same without using office dll as the server where i am going to host it does not have office. (My machine has office). Please help Regards, Sarah

    C# csharp asp-net com design sysadmin

  • Get ip address of Sharepoint Server
    S sarah_chandran

    I have a ASP.Net Page that resides on a web-hosting server and it can be accessed by adding it as a link to a webpart on some other sharepoint server. I want to display the IP address of Sharepoint server on the ASP.Net Page that can be viewed in the web part. Is it Possible? I tried Request.ServerVariables("HTTP_REFERER") but this gives the entire path which I don't want i.e. http://<Sharepointservername>/tryout/default.aspx I don't want this, I want the IP Address of the SharePoint Server alone. I also tried Request.ServerVariables("remote_host") but it gives me the IP Address of the web-hosting server where the ASP.Net Page resides which is not what I want. I hope all this is not confusing. I am a .Net developer and Sharepoint is pretty new to me, so plz. help.

    ASP.NET csharp asp-net sharepoint sysadmin hosting

  • Get IP Address of Sharepoint server
    S sarah_chandran

    I have a ASP.Net Page that resides on a web-hosting server and it can be accessed by adding it as a link to a webpart on some other sharepoint server. I want to display the IP address of Sharepoint server on the ASP.Net Page that can be viewed in the web part. Is it Possible? I tried Request.ServerVariables("HTTP_REFERER") but this gives the entire path which I don't want i.e. http://<Sharepointservername>/tryout/default.aspx I don't want this, I want the IP Address of the SharePoint Server alone. I also tried Request.ServerVariables("remote_host") but it gives me the IP Address of the web-hosting server where the ASP.Net Page resides which is not what I want. I hope all this is not confusing. I am a .Net developer and Sharepoint is pretty new to me, so plz. help.

    SharePoint csharp asp-net sharepoint sysadmin hosting

  • <img> onclick event</img>
    S sarah_chandran

    Couold u please show me some sample code of how to do it with ajax?

    Web Development question csharp javascript html

  • <img> onclick event</img>
    S sarah_chandran

    How can I call a c# method from a html image tag onclick event? I don't want to use a imagebutton, is there a way I can do it with javascript i.e. can i call a javascript function and then call the c# code from there? Can u send some sample code

    Web Development question csharp javascript html

  • Sql query
    S sarah_chandran

    Thank u , just what I needed. select deptname,COUNT(deptid) from emp,department where emp.deptid =department.id group by deptname

    Database database

  • Sql query
    S sarah_chandran

    If table1 has fields Studentname , departmentid and table2 has fields departmentid,departmentname then can anyone give me the sql query to get the department name and the number of students in each department.

    Database database

  • sql data to xml [modified]
    S sarah_chandran

    I have a vb.net web application. I have to convert the data from sql database to xml format. I am a newbie to xml so please guide me how to go about it. I have read samples about how to fill a dataset (use a query to get data from db and fill dataset)with data and transfer that into xml format. The problem with this approach is our xml template has many nested rows. Something like somedata somedata somedata somedata somedata I understand we have to use schemas to define datatype , the min occurence and max occurence and mandatory fields please let me know if it is correct? Also I am not sure what approach must be used i don' t know whether to use xsl ot xsl fo to transform the xml output according to the template. -- modified at 6:54 Tuesday 20th June, 2006

    ASP.NET database xml tutorial csharp

  • long names to be displayed in dropdownlist as Items
    S sarah_chandran

    I am not sure if this is the best solution but just try it. Use javascript to display the name on mouse over,steps are as follows 1.try to add a div tag in html file:

    2.add this in code behind - ddl is name of your drop down list ddl.Attributes.Add("onmouseover", "showTooltip();"); ddl.Attributes.Add("onmouseout", "showTooltip();"); i.e on mouseover you can see the name on mouse out the name disappears 3.Add the following javascript function showTooltip = function () { var obj = document.getElementById("ddl"); if(event.type == "mouseout") { document.getElementById("tooltip").style.display = "none"; } else { document.getElementById("tooltip").innerHTML =obj.options[obj.selectedIndex].text; document.getElementById("tooltip").style.display = "inline"; document.getElementById("tooltip").style.backgroundColor="#ffffcc"; document.getElementById("tooltip").style.paddingTop="1px"; document.getElementById("tooltip").style.paddingBottom ="1px"; document.getElementById("tooltip").style.paddingLeft ="1px"; document.getElementById("tooltip").style.paddingRight ="1px"; document.getElementById("tooltip").style.borderColor="black"; document.getElementById("tooltip").style.color="black"; document.getElementById("tooltip").style.borderWidth="1px"; document.getElementById("tooltip").style.borderStyle="solid"; document.getElementById("tooltip").style.top = screen.height; document.getElementById("tooltip").style.left = screen.height ; } note: you have to change the top and left values by adding some constant number by trial and error method eg: document.getElementById("tooltip").style.top = screen.height+500; document.getElementById("tooltip").style.left = screen.height+20 ; also check how the page looks at different resolutions. -- modified at 6:39 Tuesday 20th June, 2006

    ASP.NET help

  • Get Comma Separated List from Query
    S sarah_chandran

    Thanks.It's just what I needed.

    Database database help tutorial

  • Get Comma Separated List from Query
    S sarah_chandran

    Thanks a lot for your help. Thanks a lot for taking the time to reply.

    Database database help tutorial

  • Get Comma Separated List from Query
    S sarah_chandran

    That was just what i needed. Thanks a lot. By using the following i have removed the comma that appears at the end of the line select substring(@list,1,len(@list)-1) Now can you please tell me if there is a way in which the comma before the last item can be replaced with 'or' i.e. I would like the output to be like red,blue,green,..........pink or yellow -- modified at 0:55 Thursday 8th June, 2006

    Database database help tutorial

  • Get Comma Separated List from Query
    S sarah_chandran

    Is there any other way without hard coding the values and individually concatenating them as I have to retrieve data from a table with numerous records based on some conditions.

    Database database help tutorial

  • Get Comma Separated List from Query
    S sarah_chandran

    Can anyone tell me how to write a sql query to get a comma separated list of values. Eg. IF the table ColorTable contains in it's colors field red,blue and green. The query "Select colors from ColorTable" would return 3 rows with each row containing each color. I would like to have a query that would return the colors in one row as red,blue,green instead of returning 3 rows I tried using list(colors) but this function is not recognised. Kindly help me, Thanks in advance

    Database database help tutorial

  • SQL Server does not exist or access denied [modified]
    S sarah_chandran

    Thanks for the reply. The authentication mode is SQL Server and Windows.

    Database database csharp asp-net sql-server sysadmin

  • SQL Server does not exist or access denied [modified]
    S sarah_chandran

    My colleague is not able to access the sql server that resides in my local system from the asp.net application in her pc even though my sql server is running. She is able to access my sql server using her query analyser. The code in web.config add key="ConnectionString" value="Data Source=Myservername;User Id=mysqlservername; Password=mysqlserverpassword;Initial Catalog=mydatabasename;Connection Lifetime=30" I have used the same code in my web.config and i am able to access my sql server. Do tell if i have to give some rights for her to access my sql server through asp.net application -- modified at 6:59 Tuesday 23rd May, 2006

    Database database csharp asp-net sql-server sysadmin

  • Impersonate and security issues
    S sarah_chandran

    Can someone please explain to me in which situation we need to use impersonate=true. I had read some stuff online about this but i am not very clear about it. It would be very helpful if you could tell me about some practical situations in which you have used impersonate. My understanding is as follows: By default everything runs under the aspnet account. If we choose impersonate=true then it runs under the IUSR_MachineName account and then we can access whatever IUSR_MachineName can access.(I don't know in which situation this would be neccessary) Also if we choose impersonate=true and provide username/password then we can access whatever the particular user can access.I don't know in which situation this would be neccessary)

    ASP.NET asp-net security

  • &quot;load report failed&quot; error
    S sarah_chandran

    I run my vb.net windows application that has crystal report in a pc it runs perfectly well and i am able to see the reports , but when i take setup of the application and run in same pc i get error "load report failed". I have added the following to setup project atl.msm Crystal_Database_Access2003.msm Crystal_Database_Access2003_enu.msm Crystal_Managed2003.msm Crystal_regwiz2003.msm CrystalReports10_NET_EmbeddedReporting.msm VC_User_ATL71_RTL_X86_---.msm VC_User_CRT71_RTL_X86_---.msm VC_User_STL71_RTL_X86_---.msm apphelp.dll msado25.tlb I have added the following references CrystalDecisions.CrystalReports.Engine CrystalDecisions.ReportAppServer.ClientDoc CrystalDecisions.ReportSource CrystalDecisions.Shared i am also adding the reports , source files from "Project Name" and primary output from "Project Name" I don't understand what could be the problem as i am using the same pc. If any of you know the solution do tell me. Thanks in advance, sarah -- modified at 11:06 Tuesday 9th May, 2006

    Visual Basic help csharp c++ com

  • System Resolution
    S sarah_chandran

    ok , thanks guffa snd sathish and ista for taking the time to reply. -- modified at 23:21 Tuesday 28th February, 2006

    ASP.NET csharp javascript tutorial

  • System Resolution
    S sarah_chandran

    Can anyone tell me how to find the system's resolution from a c# web application using c# code. I know how it can be done in javascript(screen.height) and in c# windows form we can get the height using (System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height) but i want to know how it can be done using c#. Thanks in advance, -Sarah

    ASP.NET csharp javascript tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups