|
Hi,
First get the active word application and iterate thru the Documents.
private void IterateWordDocs()
{
//Iterate docs
foreach (Microsoft.Office.Interop.Word.Document doc in WordApp.Documents)
{
//Your doc name
doc.Name == "YourDocName"
}
}
Regards
Gokul
|
|
|
|
|
You can use Process.GetProcesses to get the Process instances associated with MS Word and then use MainWindowTitle[^] to get the window titles.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi All,
I am interested in communicating with the USB device. I appriciate any code that would just enum all the USB deviced connection on my comp.
|
|
|
|
|
|
How can I debug attributes ?
I wrote a custom attribute for a control and I put a breakpoint in it but it does not stop in it.
the problem with the code is that it is invoked in design time (at design time of the project using my control).
is there a way to debug it ?
|
|
|
|
|
Dear all,
I need to know given a datatable wether it is sorted or not.
I need this to reverse the sorting (i.e. if it is sorted Asc make it Desc and vise verca)
Thank u alot.
Rania Adel
|
|
|
|
|
When you populate it use ORDER BY column ASC then store a boolean value with the datatable, e.g.
bool isSortedAsc = true; Then, if you need to flip the order you will know which order it is currently in by the Boolean flag.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Hi,
I have just learned about calling a dll method in runtime but unfortunately i could not see a successful result from the loaded dll. I got the error message, "Unable to find entry point "PostalCode" in dll "monster.dll"
I have used the following code.
[DllImport(@"C:\PRIO KOBITA\monster.dll",EntryPoint="PostalCode")]
public static extern string PostalCode(string htmlScript_Stripped);
and the dll Soure code is like,
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Data.SqlClient;
using System.IO;
namespace monster
{
public class applicationVariable
{
public string PostalCode(string bulkSource)
{
return "I am Postal code";
}
}
}
Would anyone please help me...
Emran
-- modified at 4:09 Saturday 18th February, 2006
|
|
|
|
|
If you want to call a method from .Net assebmly you dont have to use DllImport, you can juse use reflection (see System.Reflection namce space). Dllimport mainly used to interface with native dlls not .Net assebmly. For example if you want to open a file and get the file handle you may write something like
[DllImport("kernel32",CharSet=CharSet.Unicode,SetLastError=true)]
static extern unsafe int CreateFile(
string filename,
uint desiredAccess,
uint shareMode,
uint attributes,
uint creationDisposition,
uint flagsAndAttributes,
uint templateFile);
in your .Net code, and call this as like any other .Net methods.
Rao
|
|
|
|
|
Hi,
Thanks for the reply.
Can you please show me a snippet how to access my methods in a dll file which was created by me.
Thanks and regards
Emran
|
|
|
|
|
Hi All,
I need to add to my Form some table.
I need to arrange the info in this table in grid but i don't know how to do is.
I add ListView object to my form , but i can`t create grid in it to see in more clear way the info in it.
The info that i need to add to my table has no connection to database - so i cant use the example that are in here.
Thanks for any help.
|
|
|
|
|
|
question:
how to track any website name visited, visiting date,time,web pages visited by a user?using Dot net,is it possible ,if not what r the other techniques to make it possible?
Makarand Mannur
-- modified at 1:22 Saturday 18th February, 2006
|
|
|
|
|
Hi,
What is the difference between Agile and Extreme programming please?
Thanks
|
|
|
|
|
Extreme is a subset of Agile. In other words Extreme programming is a type of Agile software development.
ColinMackay.net
Scottish Developers are looking for speakers for user group sessions over the next few months. Do you want to know more?
|
|
|
|
|
Hello,
I am working on a project where i have to fill a recgangle on a panel against a button click.When the button is clicked it works fine the rectangle is drawn but the problem accours when i resize my form or some other form is open on it the drawing that is on the panel is wash out imen it is clered from the panel i am writing the code.If any one knows the solution plz let me know.
Thanks
Regards
Atif
public void btn_click(object sender,EventArgument e)
{
Graphics g=mypanel.CreatGraphic();
SolidBrush b=new SolidBursh(Color.Red);
g.FillRectanle(b,0,0,40,40);
}
|
|
|
|
|
assuming u'r working on a window's form application you should add code to the form paint event.
there are no facts, only interpretations
|
|
|
|
|
I want 2 know how 2 step up beyond the intermediate level in C#
Prynce
-- modified at 20:36 Friday 17th February, 2006
|
|
|
|
|
Program a lot, make a lot of mistakes and correct those mistakes.
|
|
|
|
|
- You can study the EMCA specs for CLI and C#.
- Data structures and algorhitms in C# (bruno preiss).
- Familiarise yourself with every single class in every assembly, starting with mscorlib.dll, use
Reflector to see what goes on inside.
- Read the MSDN docs for the classes u are not familiar with.
- Understand what can and cant be down (iow what you need to get the job done).
- Look at opensource implementations of the runtimes.
- Look how other languages integrate with C#/.NET.
- Learn the major technologies available in the .NET framework.
|
|
|
|
|
Has anyone successfully connect to a linux box using Tamir.Sharpssh? If so how???
Thanks,
Joseph
|
|
|
|
|
I adapted the code and am using the scp client in my application, however I used a commercial implementation of the ssh layer.
.............................
There's nothing like the sound of incoming rifle and mortar rounds to cure the blues. No matter how down you are, you take an active and immediate interest in life.
Fiat justitia, et ruat cælum
|
|
|
|
|
Everyone says that the sftp part of this works great but i need to run commands remotely. Do you have to authenticate using the scp? I can't get the key from my computer(XP) to a Gentoo Linux box. If you know how can you help me??
Thanks!!
|
|
|
|
|
I have a timesheet pogram that I am trying to convert from a DS based program to C#. I have all of the functionality of the old program, and then some, except for printing the report ( which I will gve an example of ). To descibe what I have to use for data, I have a DateTime Array(one for each day of the week). In this structure, I populate it with info from a table. The table includes the employee id, date, time in, time out, hours worked, type of work, and lunch break. Where could I start to get this information into a report via Crystal Reports? I couldn't paste the report for a good representation( it wrapped). I don't have web link for it either..and doesn't look like attachmants are allowed.....
Anyway...the main question is how do I use structures and arrays with Crystal Reports? Is it even available? I need this report to look as close to the old thing as possible..that what the payroll department wants...
And where should I start learning crystal reports?
Common sense...the least common of the senses used
Jude
|
|
|
|
|
Hi everyone, freshly arrived in the System.Drawing namespace , I try to figure out how it works. But for this precise problem,
I need your help: I am trying to load an image in a Bitmap object. The source file is a .pgm grayscale image (format specifications:
http://netpbm.sourceforge.net/doc/pgm.html)
I don't know if there already exists some method from a class that can help me convert the data or if I should write something on my own. In this last case, I really lack some idea.
As always, it would not be fun if I was not in a hurry, let's say that my project is turning into an emergency.
Any help is welcome
Thx
Law
|
|
|
|