|
Sorry SMS - Cell Phone Message
I'm trying to connect with a remote system via gsm and make data acquisition. But i need to give some commands to the equipment via it's RS485 port. There's any other way to do this?
Best regards.
|
|
|
|
|
write a bit of software that takes an SMS as input and outputs RS485. Then connect the output of the computer to the input the hardware.
Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots.
-- Robert Royall
|
|
|
|
|
Hello
To: all expert person
I need know method create code C# to DLL ,Please kind help me find this method
Thank you very much
|
|
|
|
|
From the VS ide, New Project then select CLASS LIBRARY as the template.
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Thank you for answer.when are create code C# finish if i want DLL of C# go to use with VB6, Is it can do ?
|
|
|
|
|
Select the Class Library project when creating a new project.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi All,
I want to implement MVC in C#.net. I have multiple view and single controller.
I have grid on the form which is docked in MDI Parent form. User want to view same out put in un-docked view. If user perform any action then same effect should appear on the both views.
Thanks,
Syed Sadaqat Hussain
|
|
|
|
|
That's nice. Now, do you have a specific problem, or are you just making notes for future reference on this message board?
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
I bet the question will be "how can I do this?"
modified 12-Sep-18 21:01pm.
|
|
|
|
|
My money goes on "can someone give me the code to... (PS ITS URGENT)"
Bob
Ashfield Consultants Ltd
|
|
|
|
|
Unknown Query Engine Error
Failed to open a rowset.
Error in File C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\temp_83afa3e5-684f-4586-88b7-b1c22e9cc7d1 {096D4500-45DC-4A34-9DA9-E80F4AED7546}.rpt:
Unknown Query Engine Error
The above error raised while open an report. DataSet dsRoutecard.xsd file is used as datasource. Tables are filled before opening the report.
Any please help to me.
Thanks in advance!
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
If you're using CrystalReportViewer object to show the report, try wiring CrystalReportViewer.Error and CrystalReportViewer.HandleException events. They should give you more info what goes wrong.
The need to optimize rises from a bad design
|
|
|
|
|
Thanks for you reply. I Tried like this one. but i get the same message.
private void CReportViewer_Error(object source, CrystalDecisions.Windows.Forms.ExceptionEventArgs e)
{
InfoMsgBox(e.Exception.Message);
}
Thanking You.
Have A Nice Day!
Murali.M
Blog
|
|
|
|
|
public static int GenerateImage(String FilePath, int ImageW, int ImageH, string sToFolder)
{
try
{
int iResult;
if (File.Exists(sToFolder + System.IO.Path.GetFileName(FilePath)))
{
iResult = 0; // File allaready exists to destination path
}
else
{
int ThumbWidth = ImageW;
int ThumbHeight = ImageH;
Bitmap origImg = new Bitmap(FilePath);
// HttpContext.Current.Server.MapPath("filename");
//Declare our New FileName to save the thumbnail as
String newSavePath = sToFolder + System.IO.Path.GetFileName(FilePath);
Bitmap dstImg = new Bitmap(ThumbWidth, ThumbHeight);
dstImg.SetResolution(72, 72);
Graphics g = Graphics.FromImage(dstImg);
g.InterpolationMode = InterpolationMode.HighQualityBicubic;
g.SmoothingMode = SmoothingMode.HighQuality;
g.PixelOffsetMode = PixelOffsetMode.HighQuality;
g.CompositingQuality = CompositingQuality.HighQuality;
// Resize the original to the thumb width and height
g.DrawImage(origImg, 0, 0, ThumbWidth, ThumbHeight);
g.Dispose();
EncoderParameters encoderParameters = new EncoderParameters(1);
encoderParameters.Param[0] = new EncoderParameter(System.Drawing.Imaging.Encoder.Compression, 100); // 80% Compression
dstImg.Save(newSavePath, ImageCodecInfo.GetImageEncoders()[1], encoderParameters); // jpg format
dstImg.Dispose();
origImg.Dispose();
iResult = 1;
}
return iResult;
}
catch (Exception ex)
{
throw (ex);
}
}
I AM USING THIS FUNTION WHEN i run the local it is working fine if i run on server it is giving error any body can help me........ASAP...........
|
|
|
|
|
Are you sure that a new path is being sent to the method? If you attempt to ovewrite the open file you can get this message. If a new path is being set, check that your program has write permissions on it.
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
Try not disposing of anything, and see if it works. I have had problems closing streams in a similar scenario. If it works, try wrapping the disposable objects in using blocks instead (which strangely seemed to work in my case).
xacc.ide - now with TabsToSpaces support IronScheme - 1.0 alpha 4a out now (29 May 2008) ((lambda (x) `((lambda (x) ,x) ',x)) '`((lambda (x) ,x) ',x))
|
|
|
|
|
Member 5565850 wrote: WHEN i run the local it is working fine if i run on server it is giving error
Does the error occur on the Save() call?
I'm going with a permissions issue
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Hai all,
I wrote a code to read & write in the Excel 2007 in C#.net 2005.
I made an exe of it to deploy. It works fine in the development environment but fails outside it giving the Error:
************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Interop.Excel, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
Why this problem occurs? How to solve?
Thnks in advnce,
Praji
|
|
|
|
|
I suspect that other computers either don't have Excel installed all they have other version.
|
|
|
|
|
I copied that .exe to other folder in same machine, it doesn't works? There any solution?
|
|
|
|
|
You must copy all the dlls that are in the same folder as the executable.
|
|
|
|
|
hi.
how can copy all nodes of a treeview in another at once?
i dont want to use foreach methode.
sepel
|
|
|
|
|
foreach (Node ndSource in treeSource.Nodes)
{
Node newNode = new Node();
newNode.Text = ndSource.Text;
-- copy all required properties like the text property above --
ChildNodes(ndSource, newNode);
treeDestination.Nodes.Add(newNode);
}
private void ChildNodes(Node ParentNode, Node newParent)
{
foreach (Node ndChild in ParentNode.Nodes)
{
Node newNode = new Node();
newNode.Text = ndChild.Text;
-- copy all required properties like the text property above --
ChildNodes(ndChild);
newParent.Nodes.Add(newNode);
}
}
|
|
|
|
|
A node can't exist in two treevies at once. Each node has to be cloned first so some sort of loop is inevitable. Two code snippets below. The first does what you want but with a loop. The second moves the nodes rather than copies but no loop required.
if (treeView1.Nodes.Count > 0)
{
TreeNodeCollection treeNodes = treeView1.Nodes;
TreeNode[] nodearray = new TreeNode[treeNodes.Count];
for (int i = 0; i < nodearray.Length; i++)
{
nodearray[i] = (TreeNode)treeNodes[i].Clone();
}
treeView2.Nodes.AddRange(nodearray);
}
if (treeView1.Nodes.Count > 0)
{
TreeNodeCollection treeNodes = treeView1.Nodes;
TreeNode[] nodearray = new TreeNode[treeNodes.Count];
treeNodes.CopyTo(nodearray, 0);
treeView1.Nodes.Clear();
treeView2.Nodes.AddRange(nodearray);
}
DaveBTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
|
|
|
|
|
but i think to use AddRang function.
sepel
|
|
|
|