DocumentSource

14 篇文章 0 订阅 ¥79.90 ¥99.00

/*
 * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
 *
 * This software is open source.
 * See the bottom of this file for the licence.
 */

package org.dom4j.io;

import javax.xml.transform.sax.SAXSource;

import org.dom4j.Document;
import org.dom4j.Node;

import org.xml.sax.InputSource;
import org.xml.sax.XMLFilter;
import org.xml.sax.XMLReader;

/**
 * <p>
 * <code>DocumentSource</code> implements a JAXP {@link SAXSource}for a
 * {@linkDocument}.
 * </p>
 *
 * @author <a href="mailto:james.strachan@metastuff.com">James Strachan </a>
 * @version $Revision: 1.10 $
 */
public class DocumentSou

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
public void ItemClick(string dt1, string dt2) { XtraReport1 report = new XtraReport1(); Uri uri = new Uri("https://localhost:44363/user/Select?dt1=" + dt1 + "&dt2=" + dt2); using (WebClient c = new WebClient()) { c.Headers["Type"] = "GET";c.Headers["Accept"] = "application/json";c.Encoding = Encoding.UTF8; c.DownloadStringCompleted += (senderobj, es) => { if (es.Result != null) { var test = JsonConvert.DeserializeObject<DataTable>(es.Result); report.DataSource = test; report.FindControl("tableCell9", true).DataBindings.Add("Text", null, "FSTLB");//货主 report.FindControl("tableCell24", true).DataBindings.Add("Text", null, "THILB");//配货号 report.FindControl("tableCell9", true).DataBindings.Add("Text", null, "FSTLB");//批号 report.FindControl("tableCell10", true).DataBindings.Add("Text", null, "SECLB");//款号 report.FindControl("tableCell11", true).DataBindings.Add("Text", null, "OPKCRS");//stu report.FindControl("tableCell12", true).DataBindings.Add("Text", null, "PKGS");//件数 report.FindControl("tableCell13", true).DataBindings.Add("Text", null, "CARGOSZ1");//重量 report.FindControl("tableCell14", true).DataBindings.Add("Text", null, "CARGONWT");//体积 report.FindControl("tableCell15", true).DataBindings.Add("Text", null, "FACTDATE");//时间 documentViewer1.DocumentSource = report; } //else if (es.Result == null) { MessageBox.Show("未查询到数据"); } }; c.DownloadStringAsync(uri); }我在调用这段代码后并不能正确显示报表,是哪里出了问题
06-09
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

只是代号而已

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值