|
Kundan Saw wrote: itemcommand not getting called. How did you check? Put a breakpoint in the method?
I'm not good with ASP, but you might want to compare your code with the sample on MSDN[^].
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Thank you Eddy for your reply..
I have already check with break point. but only itemcommand is not getting fired with repeater(Note: Repeater is inside of ajax modalpopup.)
when i use without ajax modalpopup than it looks good.
|
|
|
|
|
Hi
I used the axShockwaveFlash controls to show "swf" under vs2012(c# winform). The swf file is created by flash builder4, and it contains the modle which is created by away3D.But the screen displays white,however I used axShockwaveFlash controls to show "swf" which is without away3d ,and swf runs normally .
Besides the swf canbe played in the flash player.I excluded the problem of sandbox security.If someone can help me to show swf I'll appreciate about it!
|
|
|
|
|
Flash is not a native component of the .NET framework; you'll probably get better support at one of the flash-forums. Adobe has their own[^], click on 'discussions' to get a list.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I will having a try!
Thanks.
|
|
|
|
|
You're welcome
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I created a generic type called: Table<T>, and I create an instance of him using T as 'OrderItem' element.
Now I need to set him into other instance that should suppot multiple types, so I decided to use object:
private Table<object> currentTable;
Now I'm trying to set the OrderItem table, to the Object table:
currentTable = mainWindow.OrderItemTable;
And I'm getting this error:
"Cannot implicitly convert type 'BusinessLogic.Table<Entities.OrderItem>' to 'BusinessLogic.Table<object>'".
OrderItem isnt implement IConvertible, so I can't use ConvertType, also casting isn't working.
Any suggestions?
Thanks.
|
|
|
|
|
You can't convert a collection of anything to a collection of something else:
List<string> ls = new List<string();
List<object> lo = (List<object>) ls;
Unless the collection defines a cast operator that supports it.
So you will need to explicitly define a conversion as part of your generic class:
public static implicit operator Table<object>(Table<T> t)
{
Table<object> to = new Table<object>();
...
return to;
}
How you actually do the conversion is up to you!
You will probably need to explicitly declare a conversion back again as well...
Never underestimate the power of stupid things in large numbers
--- Serious Sam
|
|
|
|
|
Thanks, that works greate for me.
|
|
|
|
|
You're welcome!
Never underestimate the power of stupid things in large numbers
--- Serious Sam
|
|
|
|
|
Hello
I have created Printer from c# and it called Myprinter How I can when user print any document show my program(redirect it to a external program) .
thanks very much
|
|
|
|
|
|
Hello
I have to use VS 2012 and C++
Or I can use VS 2010 C#
Thanks..
|
|
|
|
|
Since a driver is (effectively) part of the Windows OS you will need to write it in C/C++.
Veni, vidi, abiit domum
|
|
|
|
|
I write my project in C#.
I have to rebuild my project in C++ or there other way to create driver printer
|
|
|
|
|
If you want to create a new printer (real or virtual) then you will need to install a driver for it, and that will need to be written according to the WDK. Go to the link I gave you and study how to do it.
Veni, vidi, abiit domum
|
|
|
|
|
How to display image on crytal report using image path from folder and selection of combobox.
|
|
|
|
|
Bit by bit.
You're asking three questions here; how to display an image in CR, how to fetch an image, and how to work with a combobox. I assume that the combobox is on some WinForm?
Check out Image in Crystal Reports[^]
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Hello everyone
How I can add add local printer programmactly with c#
thanks in advance
|
|
|
|
|
You have already been hiven an answer below.
Veni, vidi, abiit domum
|
|
|
|
|
Don't repost the same question again.
|
|
|
|
|
Hello
I used this code to add printer but it did not work
try
{
oManagementScope = new ManagementScope(ManagementPath.DefaultPath);
oManagementScope.Connect();
ManagementClass oPrinterClass = new ManagementClass
(new ManagementPath("Win32_Printer"), null);
ManagementBaseObject oInputParameters =
oPrinterClass.GetMethodParameters("AddPrinterConnection");
oInputParameters.SetPropertyValue("Name", "testprinter");
oPrinterClass.InvokeMethod("AddPrinterConnection", oInputParameters, null);
return true;
}
catch (Exception ex)
{
return false;
}
|
|
|
|
|
What does "it didn't work" mean?
Where did you specify what printer to connect to? What driver to use? What printer settings (port, ip, etc)? I can't imagine you would get a working printer just by telling Windows the name of one...
|
|
|
|
|
Thanks for answer
did not work mean when I execute the code and go to Printers ,I did not see any new printer.
I want to create it on local host(Client Machine)
Port:Local port.
IP:Local IP
thanks
|
|
|
|
|