我正在使用Vb.net(webapp)代码生成每月付款记录。因此,我在“付款期限选择”页面上有一个按钮,并想在单击“生成报告”按钮后在新标签页/窗口中生成Crystal报表?
答案 0 :(得分:0)
让我们假设您的报表页面名称为(CRPage)。 因此,您可以使用以下命令打开该页面:
public class SecurityHeader
{
private SecurityHeaderType security;
public SecurityHeaderType GetSecurityHeaderType(string username,string
password,string edmid)
{
security = new SecurityHeaderType();
DateTime created = DateTime.Now;
XmlDocument doc = new XmlDocument();
using (XmlWriter writer = doc.CreateNavigator().AppendChild())
{
writer.WriteStartDocument();
writer.WriteStartElement("oas",
"Security",CMISNameSpaces.oasNamespace);
writer.WriteStartElement("oas", "UsernameToken",
CMISNameSpaces.oasNamespace);
writer.WriteElementString("oas", "Username",
CMISNameSpaces.oasNamespace, username);
writer.WriteElementString("oas", "Password",
CMISNameSpaces.oasNamespace, password);
writer.WriteElementString("edm", "edmAppID",
CMISNameSpaces.edmNamespace, edmid);
writer.WriteEndElement();
writer.WriteEndElement();
writer.WriteEndDocument();
writer.Flush();
}
doc.DocumentElement.RemoveAllAttributes();
System.Xml.XmlElement[] headers =
doc.DocumentElement.ChildNodes.Cast<XmlElement>().ToArray<XmlElement>();
security.Any = headers;
return security;
}
}