|
Hi,
Developing Env: .NET Studio in C#, windows XP
target: a COM object used for excel user (RTD)
I have no problem to compile and run the project in my
machine. The excel is working great with RTD calls.
However, I got issues when I try to deploy it to another machine.
I use
regasm my.dll /tlb (or) regasm /codebase my.dll
gacutil -if my.dll or gacutil /i my.dll
The excel is not working with RTD calls.It's not invoking my dll (I had log file in my dll ).
I am not sure why it's not working in other machine by registering the above method.
Is there any way to register .NET dll and I can
can deploy it in other machine and let Excel users call it
directly (by RTD)?
Thanks,
Gnanaprakash
|
|
|
|
|
I wrote a new service "myservice" that starts automatically depending on
another service. When "myservice" is started I need that no registration
is made in the event viewer of Windows.
Is this possible, if yes is there a simple example of this?
Thank you in advance
rodrigo
rodrigo
|
|
|
|
|
ServiceBase.AutoLog = false;
Jon Humphreys
ActivePlanet Software
|
|
|
|
|
How do I make my newly completed software a trial version based on number of loading period?
How do I make my newly completed software a trial version based on number of Days?
|
|
|
|
|
|
Am having problem creating a parameter oriented report using crystal report based on SQL Server 2000 and (C#.Net 2005). Such problems includes:
How do I prepare a report to print an employee's record based on the Employee Number?
How do I prepare a report to print employees records whose appointment date falls within a specific date range?
I shall appreciate your quick rsponse.
Thanks
Banjo
|
|
|
|
|
|
How can I insert and select an image from a sql database in my app.
Dad
|
|
|
|
|
simply take a column with type of varbinary or Image (i tried varbinary) and select and insert like other things
Select Image from Customer where Id = @Id<br />
Insert Into Customer (Image) values(@Image)<br />
Update Customer set Image = @image where Id = @Id
...
in ur application create an array of bytes and a memory stream
for displaying image select image and assign it to byte array
and write byte array to stream
MemoryStream m = new MemoryStream;<br />
m.Write(imageBytes);<br />
Image.FromStream(m);<br />
....
and for inserting just read image with binary reader into the array of bytes and insert into Db
may there was some type error sorry i don't write it in visual studio
I Wish the Life Had CTRL-Z
|
|
|
|
|
Hi Friends
Can u tell me how to download file(like txt,doc). In my project i am uploading and downloading Files. I completed uploading but i dont how to download. If i click download button in my form it has to open 'Save As' dialog box and then user have to give filename to save then it has to store.
How to do this one. Pls send me answer.
Thanks in Advance
Prabhakaran
|
|
|
|
|
Hi,
Here you have sample code to open a file using OpenFileDialog:
private System.Windows.Forms.OpenFileDialog openFileDialog;<br />
string sPath = "";<br />
DialogResult dr = openFileDialog.ShowDialog(this);<br />
<br />
if (dr == DialogResult.OK)<br />
{<br />
sPath = openFileDialog.FileName;<br />
}
|
|
|
|
|
When you say download are you saying you want to pull a file from a remote web server (http)? Or from a remote network share? Cause each one uses a different method to retrive the file. Or is the file local on the users system?
|
|
|
|
|
There are several articles here that provide a file downloader control.
Search[^]
Each one is a little bit different and provide for different features, but they all boil down to the same concept. Of course, I'm being a bit biased and will tell you to look at the article I wrote on it first.
An easy to use URL file downloader class for .NET[^]
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
I want to make a chat program that works over a lan but I don't know from where I can start.
Dad
|
|
|
|
|
|
I have created my own custom progressbar controls and i wish to assign them an icon for the toolbox.
I have read everything i found on the net including the super http://www.bobpowell.net/toolboxbitmap.htm[^]
The orginal idea was to assign as an icon the icon of System.Windows.Forms.ProgressBar but i have tried everything and I couldn't do it.
So i decided to add a new icon. That also didn't work. Finally i decided to use the ToolBoxBitmap("FILEONDISK") constructor but that didn't work also.
So two things are happening.
1)It doesn't work which is not probable
2)Something in testing is wrong.
My test procedure has been. Cleaning the project, building in debug and then in a designer of a form looking the toolbox.
Please if i'm doing something wrong tell me.
Also If someone has the solution to pute the .net controls icon in mine please also tell me.
Because it matters here are some details for the project
Default namespace: MyComponents.Windows
Assembly Name: MyComponents.Windows
The control is located in Controls\ProgressBar.cs in the project dir MyComponents\Windows.
Here is the class declaration
{<br />
[ToolboxBitmap(typeof(ResourceFinder), "System.Windows.Forms.ProgressBar.bmp")]<br />
public class ProgressBar:System.Windows.Forms.Control
ResourceFinder is an internal class outside Namespace declaration. As i have understood this should be sufficcient.
|
|
|
|
|
You need also the [ToolboxItem(true)] attribute.
In my tests for this I went crazy because it **seems** to work only if you reference the compiled dll and not with a reference to the project and this is not documented at all.
|
|
|
|
|
This is what I'm using and still it doesn't work.
<br />
internal class ResourceFinder<br />
{<br />
<br />
}<br />
namespace MyComponents.Windows.Controls<br />
{<br />
[ToolboxItem(true), ToolboxBitmap(typeof(ResourceFinder), "System.Windows.Forms.ProgressBar.bmp")]<br />
public class ProgressBar:System.Windows.Forms.Control<br />
In the same solution there is the GUI in another project. O compile the control and VS2005 populates automatically the Toolbar. But the icon is wrong.
|
|
|
|
|
Let's say that ResourceFinder is in the namespace MyDllNameSpace.Images, the default namespace of your assembly (see Assembly properties) is MyDllNameSpace, the bmp should be into Images subfolder (so that ResourceFinder namespace is equal to default namespace + bmp folder):
ToolboxBitmap(typeof(ResourceFinder), "ProgressBar.bmp")]
|
|
|
|
|
i am having a problem with a listview control not showing the color correctly. What is happening is when a form is closed over the listView control the font and color don't show properly. Its kinda hard to explain but Here[^] is a link to a pic of what is happening. The main form that the listview control is on does have the double buffer property set to true. I don't know of any other way to fix it. Any suggestions? thanks in advance
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
Create a web service project, or create a web project and create a web service in it.
---
Year happy = new Year(2007);
|
|
|
|
|
I can not create new forms.What reaons could be ?It gives errors like these.
"
at Microsoft.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
at Microsoft.Win32.RegistryKey.GetValueNames()
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.AppendWindowPanes(RegistryKey parentKey, ArrayList windowPanes)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.GetRegisteredPanes(String extension)
at Microsoft.VisualStudio.Shell.Design.WindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.DeferrableWindowPaneProviderService.CreateWindowPane(DesignSurface surface)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.DeferrableWindowPaneProviderService.DeferredWindowPane.EnsurePane()
"
Thank you.
|
|
|
|
|
it would be better if you put here some code..
life is study!!!
|
|
|
|
|
hi all,
i have a multithread program that is used to parse certain xml file and then insert it into database and delete. the xml files comes continuously so i have a timer on every instance of which i check the directory so for each file in a directory i create a theread.
it all works fine as long a i get file of size 1kb but if the file gets larger then it takes time to inset intodatabse and hence to delete it so in another instance of time interval the same file gets repeated. the file can be of larger size up to 5mb now if i disable timer and then process it every things work fine but then other small file also gets stoped as larger files is being processed.
now what shall i do so that i may not have to disable timer and file doesnt get repeted.
public void CallOnCreated()
{
DirectoryInfo dirInfo = new DirectoryInfo(@"C:/datahandler1");
fInfo = dirInfo.GetFiles("*.xml");
threads= new Thread[fInfo.Length];
sFileNames=new string[fInfo.Length];
if(fInfo.Length!=0)
{
for(int i=0;i
|
|
|
|
|
you could rename the files to NewGuid() +".xml" and then act on them. If you control the code that puts them there add some uniqueness to the filename so that things don't get overwritten.
you could also load them into a queue such as MSMQ and act on them later.
HTH
Russ
|
|
|
|