我的OS:win2000 server
vs2003
sql2000
装了CR10DevEn+cr10_net_server_install
当拉出CrystalReportViewer控件,指定ReportSource="d:\report1.rpt"
引用中有
CrystalDecisions.CrystalReports.Engin
CrystalDecisions.ReportSource
CrystalDecisions.Shared
CrystalDecisions.Web
运行总出现拒绝访问,谁知道怎么回事
*还有一个问题是text当设置为meultiline,当我在text中输入1111....不回车换行
再进入这个page,这时候界面随着也变长,很难看,text放在第一位table中,
table width:"100%",这要怎么解决

解决方案 »

  1.   

    Dim Obj As New ProducSo_Report
    Obj.SetDataSource(Cs.Ds("execute Rpt_ProducSo_DataSource " & Page.Request.QueryString("no"), "tb").Tables(0))
    'Cs.Ds("execute Rpt_ProducSo_DataSource " & Page.Request.QueryString("no"), "tb").Tables(0) 为一dataset
    Me.CrystalReportViewer1.ReportSource = Obj
      

  2.   

    <table style="TABLE-LAYOUT: fixed" width="100%">
    <colgroup>
    <col>
    </colgroup>
    <tr>
    <td style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all" colSpan="4"><asp:textbox id="txtBody" MaxLength="2000" Width="100%" runat="server" Columns="5" Rows="10"
    TextMode="MultiLine" Height="150"></asp:textbox></td>
    </tr>
    </table>
    问题2解决办法
    第一步在在table中加style="TABLE-LAYOUT: fixed" 
    第二步在td中加style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all"
    如上例题
      

  3.   

    恩   不错  
    style="TABLE-LAYOUT: fixed"  是对层自适应
    WORD-BREAK: break-all"    文本强制换行
      

  4.   

    谢谢singlepine(小山) 的帮忙,问题2可以了
    水晶的哪个不知道怎么回事