标签: urlaccess

如何在SSRS 2005中通过URL传递多值参数

我有主矩阵报告,我想通过Jump To URL从主报告中导航我的子报告:(使用下面的JavaScript函数)方法.

="javascript:void(window.open('http://localhost/ReportServer/Pages/ReportViewer.aspx?%2fKonsolidata_Data_Exporting_Project%2fEXPORT_REPORT_TEST&rs:Command=Render&RP_cntry="+Fields!STD_CTRY_NM.Value+"&RP_cll_typ_l1="+Join(Parameters!RP_cll_typ_l1.Value,",")+"'))"
Run Code Online (Sandbox Code Playgroud)

单值有效,但为多值赋予例外

喜欢

An error has occurred during report processing. (rsProcessingAborted) 
Cannot read the next data row for the data set DS_GRID_DATA. (rsErrorReadingNextDataRow)
Conversion failed when converting the nvarchar value '1,2,3,4' to data type int.
Run Code Online (Sandbox Code Playgroud)

基本上我已经根据ssrs多值参数传递方法将Parameters!RP_cll_typ_l1定义为多值到我的子报表中.该值在子报告中显示为"1,2,3,4"(数据集无法理解)它应该像"1","2","3","4"或1,2,3 ,4如果有解决方案,我该如何解决这个问题呢?

谢谢

Kali Charan Tripathi(印度)

tripathi_soft@yahoo.co.in

kalicharan.tripathi@in.schneider-electric.com

parameters reporting-services urlaccess

2
推荐指数
1
解决办法
2329
查看次数

Dnt允许用户从URL访问文档

我希望登录用户可以访问PDF文件,匿名用户无法从浏览器访问该文件,如www.domain.com/pdf/name.pdf

我的pdf文件已损坏.单击下载时失败.

我创建了pdf文件夹,保留了我的所有pdf.我有HTML代码

<ul>
<li>
    <a href="/check.php" target="_blank">Test</a>
</li>
</ul>
Run Code Online (Sandbox Code Playgroud)

check.php文件

    if($_SESSION[login]==true){

    $file_url = 'http://domainname.com/pdf/example.pdf';
    $filename='example.pdf';

    header("Content-Disposition: attachment; filename=" . urlencode($filename));   
    header("Content-Type: application/octet-stream");
    header("Content-Type: application/download");
    header("Content-Description: File Transfer");            
    header("Content-Length: " . filesize($file_url));
$fp = fopen($file_url, "r");
while (!feof($fp))
{
echo fread($fp, 65536);
flush(); // this is essential for large downloads
} 
fclose($fp);
}
Run Code Online (Sandbox Code Playgroud)

ht.access

RewriteEngine on
RewriteRule .* check.php
Run Code Online (Sandbox Code Playgroud)

php .htaccess urlaccess

-1
推荐指数
1
解决办法
48
查看次数