|
First of all i am sorry , if i have use any non polite words in this discussion !!!!
But do you have the ans ??
Happy Programming
-----
Abhijit
|
|
|
|
|
Check out these options:
ROUTE ONE:
1) Downloads the file.
2) Make changes. Save it.
3) Upload the file.
ROUTE TWO:
1) Try using a Word Automation on server to provide editing and saving directly. Remember that there are known issues with Word being automated from ASP.NET. I have a review and an URL to appropriate KBs here: http://lavanyadeepak.blogspot.com/2007/03/office-automation-for-aspnet.html[^]
2)Try using third party office components like ASpose Word. I haven't tried them and hence can not comment on it.
ROUTE THREE:
Have you tried Html-Kit (http://www.chami.com/html-kit/[^])? It has a workspace feature of saving to FTP wherein the application 'Save' toolbar icon actually maps to an implicit FTP PUT. You may need to have a hook in your Microsoft Word to achieve this.
|
|
|
|
|
Hi Vasudevan,
Thanks for yor your help ! i will surely check it and let you know when done !!!
Thanks again
Happy Programming
-----
Abhijit
|
|
|
|
|
Hi!
I'm planning to program some sort of electronic gaming machine / slot-machine (like: 5 columns with "Reels", each "Reel" shows some symbols, if you have 5 symbols in a row you hit the Jackpot).
Although I think I'm already familiar with WPF's basics (how to create controls and edit their style), I have no clue how to solve this task with WPF.
Are there any suggestions how I should program those "Reels"? Should I play videos or could it be solved by "animating" some icons? I have really no clue.
Thanks,
Mario M.
Cheers,
Mario M.
Dear CodeProject member: Please don't forget to show me how clever you are by rating also this message as "crap/spam/trash" instead of writing a meaningful response!
|
|
|
|
|
I dont really know WPF, but I am pretty sure it has an Animator class (something about a StoryBoard too). I am sure a Google will reveal more info
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hey Everybody!
I'm trying to write an IM.
The IM is working great inside the LAN, but not through the internet.
I configured my router's firewall to allow port 3300 and to transfer the stream to 192.168.1.4 (my computer inside the LAN).
When I am trying to send a message to myself using my internet IP, the tcpClient.Connect() method throws a timeout exception.
it seems that the service() method that should "catch" the incoming data simply does nothing!
Surly I'm doing something terribly wrong!
Can someone help me on that??? I'm really suck!
Thanks A LOT!
|
|
|
|
|
You cant do that It is not possible to connect to yourself via a NAT device. The connector and connectee needs to be on opposite sides of the NAT device.
That said, there are some tricks to work around this. This involves modifying your hosts file, and adding an entry for your localhost, that match the name of your hostname to the outside work (this wont work with IP's).
Example:
Say your outside hostname is user-123-123123-344323.myisp.com
then add that hostname to your hosts file, and point it to 127.0.0.1.
Now when you conenct via hostnames, it will resolve the hostname as 'internal' and bypass the NAT device, allowing you to make a connection.
Hope this helps
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hi is there a way to simulate keypresses using a joypad?
I would like to create a program which fires keypress messages to an IE window for use with games. Is this possible?
ty
|
|
|
|
|
Yes - you'd need to capture the controller's input with DirectInput and then turn it into keyboard input.
There is a program called Joy2Key (Google for it) that also does this, and also allows you to simulate mouse input with your joypad.
Me: Can you see the "up" arrow?
User:Errr...ummm....no.
Me: Can you see an arrow that points upwards?
User: Oh yes, I see it now!
-Excerpt from a support call taken by me, 08/31/2007
|
|
|
|
|
|
I have created a class named Authentication
now i need to create n number of objects of Authentication
My authentication contains a method method1()
i need to access through authentication class array objects ...
how can i do this ...
thankzzzzzzz
A123-B321
|
|
|
|
|
Authentication[] array = new Authentication[n];
foreach(Authentication item in array)
{
item.method1();
}
Just because you said array. You should use collections (unless Authentication is low-level class, which is obviously not the case).
So something like:
AuthenticationCollection: Collection<Authentication>{}
AuthenticationCollection items = new AuthenticationCollection(n);
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
The easiest way is using the System.Collections.Generic namespace, it automatically gives you most of the methods you need (Add etc...) and you can create any others you need.
i.e.
using System.Collections.Generic;
namespace TestNamespace
{
class Authentication
{
public void method1()
{
}
}
class AuthenticationCollection
{
private List<Authentication> _Items;
public List<Authentication> Items
{
get
{
return _Items;
}
set
{
_Items = value;
}
}
public AuthenticationCollection()
{
_Items = new List<Authentication>();
}
}
}
To call method1, simply use the index of the Item in the collection when instanciated and filled.
using System.Windows.Forms;
using TestNamespace;
namespace MyApp
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
Load += new System.EventHandler(Form1_Load);
}
void Form1_Load(object sender, System.EventArgs e)
{
Authentication myAuth1 = new Authentication();
Authentication myAuth2 = new Authentication();
AuthenticationCollection myCollection = new AuthenticationCollection();
myCollection.Items.Add(myAuth1);
myCollection.Items.Add(myAuth2);
myCollection.Items[0].method1();
}
}
}
Dave
|
|
|
|
|
i want to apply the selected item (printer name) from listbox collection when ever i load the print dialoge
plz help me in this regard
challavijju
|
|
|
|
|
Your problem is not clear ? can u kinldly explain in details ?
And one more think while post your question dont write like that
Challavijju wrote: Subject:Re: This is my first post
Put your main objective in short as questions . other wise no one will look into this
Happy Programming
-----
Abhijit
|
|
|
|
|
Hi Guys,
I am trying to access the inbox on Exchange Server 2003 by writting a following code in Visual Studio 2005 on windows vista business edition.
ADODB.Connection oCn = new ADODB.Connection();
ADODB.Recordset oRs = new ADODB.Recordset();
ADODB.Fields oFields;
ADODB.Field oField;
// TODO:
string sFdUrl = @"https://exchange server/owa/";
oCn.Provider = "MSDAIPP.DSO";// "exoledb.datasource";
oCn.Open(sFdUrl, @"domain\user", "Password", -1);---------- This is wehre I am getting an exception.
The exception says : {"Provider cannot be found. It may not be properly installed."}
Can you help to solve this issue please?
Thanks
-- modified at 7:46 Friday 19th October, 2007
happy coding!
|
|
|
|
|
hi ,
i wrote this code so that i can understand delegates...
code works fine ....good
but when i changed the code a bit ie when i wrote the main function inside another class if i need to call the method using delegates then i have to call like
""mydelegate obj = new mydelegate(class.dog);""
ORIGINAL CODE::
class Program
{
public static void dele()
{
Console.WriteLine("the delegate will call this function");
Console.ReadLine();
}
static void Main(string[] args)
{
mydelegate obj = new mydelegate(dog);
obj();
}
}
}
ALETRED CODE WITH TWO CLASSES::
class Program
{
public static void dele()
{
Console.WriteLine("the delegate will call this function");
Console.ReadLine();
}
class Program2
{
public static void anotherdele()
{
static void Main(string[] args)
{
mydelegate obj = new mydelegate(Program.dog);
obj();
}
}
}
SO My doubt here is i thought using delegates we need not know the name of the class but here if the main is enclosed in another class i need to use the class name....
any help is welcome .......
thanks
C#
|
|
|
|
|
IF you are referencing a static method the class must be known, if you are using an instance method, the instance should be known (and definately NOT null).
xacc.ide
The rule of three: "The first time you notice something that might repeat, don't generalize it. The second time the situation occurs, develop in a similar fashion -- possibly even copy/paste -- but don't generalize yet. On the third time, look to generalize the approach."
|
|
|
|
|
Hi ,
I've read that objects are reference types and also that 'ref' keyword is used to pass the reference of a value ...
Now plz look into the following examples...
<br />
namespace ExampleConsoleApp<br />
{<br />
public class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
Manager emp = new Manager();<br />
<br />
changevalue(emp);<br />
<br />
Console.Out.WriteLine(" " + emp.name);<br />
<br />
Console.Read();<br />
}<br />
<br />
<br />
public static void changevalue(Manager man)<br />
{<br />
<br />
man.name = "Grade1Employee";<br />
<br />
}<br />
}<br />
<br />
<br />
public class Manager<br />
{<br />
public string name = string.Empty;<br />
<br />
}<br />
}<br />
The program gives the output as "Grade1Employee"<br />
....<br />
Example2 <br />
<br />
namespace ExampleConsoleApp<br />
{<br />
public class Program<br />
{<br />
static void Main(string[] args)<br />
{<br />
<br />
Manager emp = new Manager();<br />
emp.Name="Grade1Employee";<br />
changevalue(emp);<br />
<br />
Console.Out.WriteLine(" " + emp.name);<br />
<br />
Console.Read();<br />
}<br />
<br />
<br />
<br />
<br />
<br />
public static void changevalue(Manager man)<br />
{<br />
<br />
Manager emp2 = new Manager();<br />
emp2.name = "TopLevelEmployee";<br />
<br />
man = emp2;<br />
<br />
<br />
}<br />
}<br />
<br />
<br />
<br />
<br />
public class Manager<br />
{<br />
public string name = string.Empty;<br />
<br />
}<br />
}<br />
..The above still gives the output as "Grade1Employee" why is it so? When object is a reference type then the value should be changed right?...when use a ref keyword for the parameter name in the method like "changevalue(ref Manager man)" then the output is
"TopLevelEmployee"...
Why is it behaving differently in two cases..?
Koushik
|
|
|
|
|
Spunky Coder wrote: public static void changevalue(Manager man)
{
Manager emp2 = new Manager();
emp2.name = "TopLevelEmployee";
man = emp2;
}
This is correct. Objects are passed as reference, but that means that instead of copying whole object, reference to object is copied.
changevalue(Manager man) <- copy of "pointer" to instance Manager
{
Manager emp2 = new Manager(); <- local variable
emp2.name = "TopLevelEmployee"; <- you do changes to local variable
man = emp2; <- you assign the copy of pointer to instance to local instance
} <- all is forgotten when method returns</code>
Why is that called passing by reference? If it was passed by value, following code:
changevalue(Manager man) <- copy of instance of Manager
{
man.name = "TopLevelEmployee"; <- you do changes to copy
}
would NOT change name of man outside the method. As you can try, it indeed does change the name, because objects are passed by reference.
If you really want to change the reference to man, use keyword ref. (think about pointer to pointer)
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Hi..
changevalue(Manager man) <- copy of "pointer" to instance Manager
{
Manager emp2 = new Manager(); <- local variable
emp2.name = "TopLevelEmployee"; <- you do changes to local variable
man = emp2; <- you assign the copy of pointer to instance to local instance
} <- all is forgotten when method returns
...Now so what's the difference between passing an int datatype and object when its scope is just limited to the called function ?...
Koushik
|
|
|
|
|
Spunky Coder wrote: ...Now so what's the difference between passing an int datatype and object when its scope is just limited to the called function ?...
No, scope of the reference is limited to called function. Actual instance of object you change via the reference will keep the changes outside that function. Is this what you mean?
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
I'm totally confused... ...i was taught that both in java and c# objects are referenced types so when we do any operations on the object they get reflected to entire object wherever you access it ..but now its behaving differently...
Koushik
|
|
|
|
|
Spunky Coder wrote: i was taught that both in java and c# objects are referenced types so when we do any operations on the object they get reflected to entire object wherever you access it
But you are not doing any operation on object, you are changing the reference itself.
[ My Blog] "Visual studio desperately needs some performance improvements. It is sometimes almost as slow as eclipse." - Rüdiger Klaehn "Real men use mspaint for writing code and notepad for designing graphics." - Anna-Jayne Metcalfe
|
|
|
|
|
Spunky Coder wrote: The above still gives the output as "Grade1Employee" why is it so?
You're passing a reference to a Manager object to the method. If you change the object via this reference the changes reflect outside the method (first example). If you create a new object and assign the reference to it to the method parameter, then this change does not reflect outside the method (second example), because changes to parameters (values or references) do not reflect outside a method unless you use the ref or out keyword.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook www.troschuetz.de
|
|
|
|