Carefull about object.ToString()[i]: the output is char type. If you Convert that value to int, you will get chars representation in int. To get the value of the char, the simple way is to convert it to string:
- .ToString()[i].ToString();
Carefull about object.ToString()[i]: the output is char type. If you Convert that value to int, you will get chars representation in int. To get the value of the char, the simple way is to convert it to string:
crDaily1.SetDataSource((DataTable)dtDaily);
crDaily1.SetParameterValue("pPeriod", title);
private void FormReportDaily_Shown(object sender, EventArgs e)sometimes the dummy data that appears in "Main Report Preview" is shown at runtime. I really don't know the reason?!.
crDaily1.SetDataSource((DataTable)dtDaily);
crDaily1.SetParameterValue("pPeriod", title);
public FormReportDaily()
dynamic Student = new ExpandoObject();
Student.ID = 1;
Student.Name = "John";
Student.Grade = 10; Student.Addess = new ExpandoObject();
Student.Addess.City = "London";
Student.Addess.Country = "UK";
Student.Addess.StreetNo = 123456;
Dynamically binding an EventStudent.Click += new EventHandler(SampleHandler);
private void SampleHandler(object sender, EventArgs e)
{
//throw new NotImplementedException();
}
Pass parameter as dynamic.public void Write(dynamic Student)
{
//do stuff
}
// Comment //create XML
XmlDocument doc = new XmlDocument();
//header
XmlDeclaration decl = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
doc.AppendChild(decl);
//
doc.Schemas.Add("test:schema:v1", "http://sample.com/schema.xsd");
XmlElement decElem = doc.CreateElement("root");
XmlAttribute attr = doc.CreateAttribute("xsi", "schemaLocation", "http://www.w3.org/2001/XMLSchema-instance");
attr.Value = "test:schema:v1 schema.xsd";
decElem .Attributes.Append(attr);
decElem .SetAttribute("xmlns", "decElem");
doc.AppendChild(docElem);
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime Version="v4.0" sku=".NETFramework, Version=v4.0" />
startup>
System: VS 2010, Crystal Reports 13, Windows 7 x64
I've found the answer to the file association problem
None of my files are signed, and the association still works (when I click a file in the File Explorer, the app is launched).
I have not found a way to export my registry keys from the deployment project (it may be possible using the ccregedt.exe in the CE Remote Tool, but it would just show the installed reg keys).
So, I opened the cab that cabwiz generates and extracted the _setup.xml file. Inside (at the bottom), you'll find the registry sections:
Thanks to vpborza