【发布时间】:2021-02-04 03:33:18
【问题描述】:
我正在开展一个项目,我需要每月从 SSRS 报告服务生成近 40 份报告。我一直在尝试使用 python 使其自动化,但我在传递的 URL 中遗漏了一些东西。任何见解将不胜感激!
【问题讨论】:
-
您需要显示一些代码,否则每个人都会猜测您缺少什么。
-
session.auth = HttpNtlmAuth(username= '' , password= '') 文件名 = 'C:\SSRS Reports\\report.pdf' 用户名 = "" 密码 = "" url = "http:///reportserver?/report/
&ReportMonth=08&ReportYear=2020" r = requests.get(url, auth=HttpNtlmAuth('','' ) ) print(r.status_code) if r.status_code == 200: with open(filename, 'wb') as out: for bits in r.iter_content(): out.write(bits)
标签: python visual-studio reporting-services