|
OMG! How did you even figure out what he wanted?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Hi all,
how we can read/write data from powerpoint presentation using c# .net.
plz replay if any method for this query..
Thank you.
|
|
|
|
|
Hmm, quick search on Google resulted in this as a result, the first one to be exact.
http://www.codeproject.com/KB/cs/Power_Point_Automation_C_.aspx[^]
And it is right here on CP! Even better, the conclusion says the exact words 'reading and writing', worth a look at.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
|
Hi,
i am in need of a solution for the problem which i could not proceed further,
i am using windows datagrid(VS 2003)in C# and i need to edit some cells of alternate rows in windows data grid like
b5,b6,b7 and b8
- -
h5,h6,h7 and h8
here b and h stands for row and nos stand for columns
i am not familiar with windows data grid so it would be great if someone suggests me a way thru some sample code.
Thank you
Thanks
Mukkanti
|
|
|
|
|
I have no idea what you are asking.
mukkanti007 wrote: here b and h stands for row and nos stand for columns
WHAT? I don't even see nos anywhere...
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Oh! nos = numbers
How about you reask the question, in better english, and no text speak?
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
Hi,
to better understand the problem,
I have a windows data grid with some data filled up.
now i want to edit only some cells (B5,B6,B7,B8) of 1st,3rd,5th row only in that datagrid,
B5- 5th cell of Row
B6- 6th cell of Row
.
.
.
i need sample code for this.
Hope this is clear now.
Thanks
Mukkanti
|
|
|
|
|
hai i have a vc6 dll to be used for my project. the problem is whenever i want to call some function which takes the parameter VARIANT* from vc6 application asks for a ref object parameters and I cannot retrieve the value needed.
So I used the interop marshalling techniques for this but still i have problems with that can anybody help me how to approach this problem
|
|
|
|
|
Hi people!!!
I had to develop an application that has to work as standalone and also as "add on" of some ERP systems. One of the things done in my program is to have an object serialized to an XML File.
It works 90% of the time... but under ONE of the ERP Systems (SAP) I get a System.InvalidOperationException: "There was an error generating the XML document", InnerException is "Could not load file or assembly 'Swissdec..."
What is driven me crazy is that this exception is generated inside that assembly...
Does somebody have an idea???
here is the stack:
Title: System.InvalidOperationException
Date/Time: 19.12.2008 08:53:43
Message: There was an error generating the XML document.
StackTrace:
at SCS.Swissdec.XmlGenerator.GenerateXmlFileAsDeclareSalary(String pPathToGenerate)
at SCS.Swissdec.SwissdecLogic.Send(DateTime pFromDate, DateTime pToDate, String pSubstituteRequestId)
at SCS.SalaryGUI.Tools.SwissdecControl.btnSend_Click(Object sender, EventArgs e)
******************************
Message: Could not load file or assembly 'Swissdec, Version=10.10.108.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0x80070057 (E_INVALIDARG))
StackTrace: at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterDeclareSalary.Write81_DeclareSalary(Object o)
******************************
Message: String cannot have zero length.
StackTrace: at System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean forIntrospection, StackCrawlMark& stackMark)
at System.Reflection.Assembly.LoadFrom(String assemblyFile)
at SCS.Salary_B1AddOn.currentDomain_AssemblyResolve(Object sender, ResolveEventArgs args)
at System.AppDomain.OnAssemblyResolveEvent(String assemblyFullName)
******************************
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Happy new year to everybody!
I did some researches and what I understand is that my app does not generates correctly the "MyProject.XmlSerializers.dll" ... Or else it uses another xmlserializer instead of this one.
As said above my app is an Addon and is called from an outside application. This may confuse .NET and I found out that using the GAC may resolve the problem.... But I don't wanna do that. Any other suggestion would be appreciate!!!
Life is not short... the problem is only how you organize yourself
|
|
|
|
|
Hi,
When i try to connect a client with a listening server, no connection is established. In the client, i get the LocatEndPoint as 0.0.0.0 : "port number".
It is ok in some particular system.
Here is the code for server listening :-
strHostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostByName( strHostName );
aryLocalAddr = ipEntry.AddressList;
Socket listener = new Socket( AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp );
listener.Bind( new IPEndPoint( aryLocalAddr[0], 399 ) );
IPAddress.Loopback, 399 ) );
listener.Blocking = true;
listener.Listen(-1);
listener.BeginAccept( new AsyncCallback( app.OnConnectRequest ), listener );
Code for client :-
m_sock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
IPEndPoint epServer = new IPEndPoint(IPAddress.Parse(IPaddress), 399);
m_sock.Blocking = true;
onconnect = new AsyncCallback(OnConnect);
m_sock.BeginConnect(epServer, onconnect, m_sock);
Regards,
Yesuprakash
|
|
|
|
|
|
Hi there
Can someone guide me how to do Dos printing, with paper eject and margin set.
I am having a C# application with SQL 2000 i have data loaded into developer express grid. when the user selects print. it must go for dos based printing.
Right now i am writing it to a text file then tried printing i am facing alignment problem like if a line has 130 letters everything goes to a mess.
here is what i have to print
-----------------------------------------------
Company Name
Address Line1
Address Line2
-----------------------------------------------
Bill No :- 12345 Bill Date:- DD/MM/YYYY
-----------------------------------------------
Customer Name :- John Travolta
-----------------------------------------------
-----------------------------------------------
Waiting for a reply
Thanks
|
|
|
|
|
|
I'm not new to C#, nor to programming in general, however, I can't seem to find any information on this anywhere.
I need to know if there is any way to replace a reference to a managed library used by another library, to which I do not have the source.
Because that probably wasn't very clear, here's an example of what I mean.
I have a library, A.dll, that references another library, B.dll. However, the version of B.dll that is referenced is dated, and I want to replace it with a newer, more secure B.dll. I already know that its implementation will be supported, because nothing has changed in terms of how it is used. I cannot simply disassemble and reassemble the library, because one of the source files is unusable when I do so (I do not know why, to be honest. It just generates random symbols.)
Is there any way to do this?
|
|
|
|
|
Nevermind. It seems that I've been able to remedy the problem by disassembling it into MSIL, editing the assembly language to reflect the new library, and reassemble it. Problem fixed.
|
|
|
|
|
when i run my project,it's giving the error as
Unable to automatically step into the server. Connecting to the server machine 'soap.search.live.com' failed. The debugger cannot connect to the remote computer. This may be because the remote computer does not exist or a firewall may be preventing communication to the remote computer. Please see Help for assistance.
what should i do to access MSN live search webservice(com.msn.live.com)
|
|
|
|
|
What's this exception? i can not understand why my code have it ?
Anyway to disable this exception?
Thanks
|
|
|
|
|
Try stepping through the code to see what line causes it?
Check help and MSDN to get more info on the Exception?
|
|
|
|
|
I am busy with an NTier application that has a DataAccess project containing a DataSet, a DataEntities project containing the structure of the dataset, a WCF Service that handles the DataAccess calls to the DataAccess Project and a Windows Forms Project thast contains the forms.
I need to impliment validation and I have added the following to my datatable code.
public override void EndInit()
{
base.EndInit();
ColumnChanging += IndustryColumnChangingEvent;
}
public void IndustryColumnChangingEvent(object sender, System.Data.DataColumnChangeEventArgs e)
{
if (e.Column.ColumnName == "Industry")
{
if ((string)e.ProposedValue == "")
{
e.Row.SetColumnError("EIndustry_Description", "Please enter a Industry.");
}
else
{
e.Row.SetColumnError("EIndustry_Description", "");
}
}
}
The problem is that the above mentioned method never executes if I debug and I know that I should call the moethod but I have no idea how to call the mothod in the form.
What would be the best way to call/access this method in my windows forms project?
Illegal Operation
|
|
|
|
|
hey guys,
i have three classes:
FormInput
BO_Storage
XmlMapper
FormInput calls BO_Storage and BO_Storage calls XmlMapper. The class "FormInput" communicates with the user and could/should be repleaced with a web interface or whatever. So now to the problem. When a Exception/Error in the XmlMapper occurs (No write access etc.), where and how should i handle it? Every class should be repleaceable without to change other classes (only minimally). I know certain ways to solve this problem, but how would you handle it? It's more a philosophical question
Skyline
|
|
|
|
|
In .NET, you would expect to throw exceptions and let the calling code catch them and decide how to deal with them.
Christian Graus
Driven to the arms of OSX by Vista.
|
|
|
|
|
I usually have my class throw System errors when possible. Have them throw them, and catch those in the classes that use it.
The best way to accelerate a Macintosh is at 9.8m/sec² - Marcus Dolengo
|
|
|
|
|
skyline92 wrote: It's more a philosophical question
No it's not. It's called Best Practices[^]. They accumulate over time by people networking and publishing their experiences.
led mike
|
|
|
|