当前位置:网站首页>Reporting Services- Web Service
Reporting Services- Web Service
2022-07-29 05:59:00 【Denny Hui】
In these two days, I need to get the list of reports on the report server , Make a note here in case you forget .
First, it needs to be called in the project Reporting Services Service for : 


After adding the service :
ReportingWS.ReportingService2010 rs = new ReportingService2010();
rs.Credentials = System.Net.CredentialCache.DefaultCredentials;
ReportingWS.CatalogItem[] items = rs.ListChildren("/", true);
DataTable dt = new DataTable();
dt.Columns.Add("text", typeof(string)); // The data type is Text
dt.Columns.Add("id", typeof(string));
#region Get the report list
for (int i = 0; i < items.Length; i++)
{
// Limit to users waxdoll\\administrator Objects created , Among them, the objects are limited to folders and reports
string pcname = System.Environment.MachineName; // Local computer name
string username = System.Environment.UserName; // Local computer login
if (items[i].CreatedBy.ToLower() == (pcname + "\\" + username).ToLower())
{
if (items[i].TypeName == "Report")
dt.Rows.Add(items[i].Name, items[i].Path);
}
}
#endregionSo you can get all the reports , Of course, I have filtered the folder above , The withdrawal suffix is report A list of , If you need a folder, you can add another condition on it :item[1].type==”Folder” So you can get the name of the folder .
边栏推荐
- Laravel service container (Application of context binding)
- Flink connector Oracle CDC 实时同步数据到MySQL(Oracle19c)
- 微信内置浏览器禁止缓存的问题
- Fantom (FTM) surged 45% before the FOMC meeting
- Print out all prime numbers between 1-100
- “山东大学移动互联网开发技术教学网站建设”项目实训日志四
- mysql在查询字符串类型的时候带单引号和不带的区别和原因
- 并发编程学习笔记 之 工具类CountDownLatch、CyclicBarrier详解
- ANR优化:导致 OOM 崩溃及相对应的解决方案
- How to PR an open source composer project
猜你喜欢

Synchronous development with open source projects & codereview & pull request & Fork how to pull the original warehouse

C# 连接 SharepointOnline WebService

DataX installation

“山东大学移动互联网开发技术教学网站建设”项目实训日志四

微信小程序源码获取(附工具的下载)

Huawei 2020 school recruitment written test programming questions read this article is enough (Part 2)

Flink connector Oracle CDC 实时同步数据到MySQL(Oracle19c)

并发编程学习笔记 之 Lock锁及其实现类ReentrantLock、ReentrantReadWriteLock和StampedLock的基本用法

July 28 ens/usd Value Forecast: ENS attracts huge profits

识变!应变!求变!
随机推荐
【ML】机器学习模型之PMML--概述
“山东大学移动互联网开发技术教学网站建设”项目实训日志六
“山东大学移动互联网开发技术教学网站建设”项目实训日志三
通过简单的脚本在Linux环境实现Mysql数据库的定时备份(Mysqldump命令备份)
xtrabackup 的使用
Most PHP programmers don't understand how to deploy safe code
Super simple integration HMS ml kit face detection to achieve cute stickers
Use of file upload (2) -- upload to Alibaba cloud OSS file server
Thinkphp6 pipeline mode pipeline use
【DL】搭建卷积神经网络用于回归预测(数据+代码详细教程)
PHP write a diaper to buy the lowest price in the whole network
【数据库】数据库课程设计一一疫苗接种数据库
Reporting Services- Web Service
【CV】请问卷积核(滤波器)3*3、5*5、7*7、11*11 都是具体什么数?
Android studio login registration - source code (connect to MySQL database)
A preliminary study on fastjason's autotype
yum本地源制作
关于Flow的原理解析
Madonna "hellent" bought $1.3 million NFT boring ape, which is now considered too expensive
北京宝德&TaoCloud共建信创之路