|
Yes it's even easy, it just sucks that's all. You get a massive SVG that way, and it will be ugly when scaled.
|
|
|
|
|
do u have a sample code for such conversion???
Thanks in advance.
|
|
|
|
|
Nope, but it's easy. Just loop over all the pixels, and make a bunch of these
<rect x="something" y="something" width="1" height="1" style="fill:rgb(something,something,something)"/>
|
|
|
|
|
Hi i have this controller function
[HttpPost]
public JsonResult SaveList(List<cap> values)
{
return Json(new { Result = String.Format("Fist item in list: '{0}'", values[0]) });
}
and this is the class
[Serializable]
public class cap
{
public string capnumber { get; set; }
public string capname { get; set; }
public string capdescription { get; set; }
}
and this is the code in jquery
var stringArray = new Array();
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
var postData = { values: stringArray };
$.ajax({
type: "POST",
url: "/Home/SaveList",
data: JSON.stringify(postData),
success: function (data) {
alert(data.Result);
},
dataType: "json",
traditional: true
});
i was thinking that postdata will be mapped but it is not working
how can it happen??
|
|
|
|
|
It looks like the model binder is having problems taking the array and binding it to the generic list (I copied you code, according to fiddler[^] - a tool you should get for this type of work - the data is being sent up as JSON OK). This[^] might be of help.
|
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open documents again it asks me password .... I want remove the password once for all ..... Please help me
|
|
|
|
|
Would be best if you post your question on the site where you got the code, as the author(s) is more familiar with his creation than anyone else.
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
HI!!!
I am using this code to remove password from word documents
http://ishwor.cyberbudsonline.com/2013/01/remove-writeedit-protectionenforcement.html?showComment=1374659141159#c1604586394111748506
also this :
http://www.c-sharpcorner.com/Forums/Thread/61822/
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
|
|
|
|
|
|
sarraarfaoui wrote: the code works correctly and it opens documents when I am running but when I open documents again it asks me password .... I want remove the password once for all If you can open it "once", you can also copy it's contents to a new file.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
nice idea
/* LIFE RUNS ON CODE */
|
|
|
|
|
In my rdlc report i need to merge cells of three columns based on one condition.
Any help?
|
|
|
|
|
Ideally you should be able to select the cells and use Merge option on right click. However it does not appear if you have a cell over a group or
if the cells you are selecting have a merged cell below them. For the second case , you will have to start from the row that has no merged cells on teh table. you shopuld be able to find "Merge" option on right click if you choose cells immediately above this row.
If there is a cel over group header, then it cannot be merged but you can merge other cells in that row for header.
else
Check this
merge-cells-in-table-rdlc[^]
|
|
|
|
|
Thanks for answer but I need to merge cells programmatically based on formula expression.
|
|
|
|
|
// dtdevs is a DataTable
// PVdataDev is my dataclass created by VS xsd tool
var q = from r in dtdevs.AsEnumerable ()
select new PVdataDev
{
pvname = r["pvname"].ToString (),
dtype = r["dtype"].ToString (),
beamline = r["beamline"].ToString ()
};
My question is that I would like to 'select' all the fields in PVdataDev (I have some 25) without specifying each (like the 3 above etc).
Is this possible ?
Amien
|
|
|
|
|
|
I have a few OPC Servers I have created with Software Toolboxes SLIKDA. right now I have them running as windows forms which the users can interact with as they are simulations and or one off. I have been asked to make them into windows services and cannot figure out how to do this without rewriting the whole app and even with that I am not sure how I would get a form to run within a windows service.. I am a novice.. if someone can point me to some tutorials that would help it would be appreciated
|
|
|
|
|
|
You should not even try to run a form in a Windows Service! A service is designed to run in the background. If you need an UI to control the functionality of the service create a seperate application and implement some form of Interprocess Communication (WCF jumps to mind here , or just a small TCP stack, etc. I guess you get the idea).
A Windows Service will usually also run under a seperate User especially created for Services. If something like a form (or worse: a MessageBox) pops up this can have some very nasty side effects like blocking the service from continuing it's work etc.
If your application has a good separtion from UI code and business code, converting the Application should probably be a more or less trivial task. (Just move the code for the business logic to the Windows Service). If all you code is in the Forms Codebehind and intertwined with the UI Logic you'll have no choice but rewriting the whole thing.
|
|
|
|
|
Hi,
I need to generate report dynamically, where the user can select a table and columns as per their needs, is there is any way to populate report generate wizard at run time?
|
|
|
|
|
|
i create control and this control derived from gridview control.then i add 2 column in constructor like this :
InitializeComponent();
this.AutoGenerateColumns = false;
DataGridViewCheckBoxColumn cb = new DataGridViewCheckBoxColumn();
cb.HeaderText = "";
cb.Name = "dgvcSelect";
this.Columns.Add(cb);
DataGridViewTextBoxColumn tb = new DataGridViewTextBoxColumn();
tb.Name = "dgvcRowNumber";
tb.HeaderText = "ردیف";
but when i run my program 4 column generate for me.where is the problem?
please help me
|
|
|
|
|
Did you turn AutoGenerateColumns back on in your code consuming this new control?
Do your column names match the column names coming from your bound data?
|
|
|
|