IT |
気になる、記になる… |
Googleの「Tensor G3」チップはSamsungの改良された4nmプロセスで製造へ |
https://taisy0.com/2023/05/04/171464.html
|
google |
2023-05-04 05:06:00 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
Squidインスタンス(EC2)でプロキシ構成のハンズオン |
https://qiita.com/i3no29/items/5ff2c65cfd6bf9fb733d
|
squid |
2023-05-04 14:15:27 |
Linux |
CentOSタグが付けられた新着投稿 - Qiita |
基本ACL、拡張ACL 知らなくて怒られた件 |
https://qiita.com/murachi1208/items/13b9a163fa6186b8199c
|
varlogsecur |
2023-05-04 14:54:14 |
Git |
Gitタグが付けられた新着投稿 - Qiita |
GitHubハンズオン 第5回 ~無視リスト編~ |
https://qiita.com/segur/items/2de61acfa73ce1eceac9
|
github |
2023-05-04 14:09:14 |
海外TECH |
DEV Community |
How to Generate an SSRS Report as a Password-Protected PDF Using the Bold Reports Report Writer |
https://dev.to/boldreports/how-to-generate-an-ssrs-report-as-a-password-protected-pdf-using-the-bold-reports-report-writer-m8l
|
How to Generate an SSRS Report as a Password Protected PDF Using the Bold Reports Report WriterSSRS SQL server reporting services is a powerful tool that enables users to create deploy and manage reports across an organization However there may be times when you need to secure sensitive information contained in your SSRS report by generating a password protected PDF In this blog post we will show you how to convert an SSRS report into a password protected PDF using the Bold Reports Report Writer The Bold Reports Report Writer is a library that enables developers to programmatically create and export reports in various formats including PDF Excel and DOCX With its ability to generate password protected PDFs you can ensure that your sensitive information is secure while still delivering high quality reports to your users To get started let s assume you have an existing SSRS report that you want to export as a password protected PDF Here s how you can do that using the Bold Reports Report Writer for NET apps PrerequisitesEnsure your development environment includes the following Visual Studio NET Step Create a NET console application Open Visual Studio and click Create a new project Create a new projectChoose the NET Console app with C and click Next Create a NET console appProvide a project name click Next select the NET version and click Create The default NET console app is created NET console appStep Install the Bold Reports Report Writer library NuGet package To use the Bold Reports Report Writer library in your project you need to install the BoldReports Net Core NuGet package You can do this by opening the Package Manager Console in Visual Studio and running the following command Install Package BoldReports Net CoreStep Add the namespaces related to the Bold Reports Report Writer In the Program cs file add the following namespaces at the top of the file using BoldReports Writer using BoldReports Web Step Create a ReportWriter instance Create a ReportWriter instance and set its properties as shown in the following ReportWriter writer new ReportWriter writer ReportProcessingMode ProcessingMode Remote writer ReportServerUrl writer ReportPath Report Path writer ReportServerCredential new System Net NetworkCredential username password Replace the ReportServerUrl property with your SSRS report server URL Also replace the Report Path username and password with your own values Step Set the data source credentials to the writer If your SSRS report uses data sources that require credentials you need to set the data source credentials to the writer In the following code replace the Datasource name username and password with your own values List lt DataSourceCredentials gt dataSourceCredentialsList new List lt DataSourceCredentials gt dataSourceCredentialsList Add new DataSourceCredentials Datasource name username password writer SetDataSourceCredentials dataSourceCredentialsList Step Create a password protected PDF To create a password protected PDF you need to use the Report Writer s PDFOptions property The following steps achieve this In the Program cs file include the namespace Syncfusion Pdf Security Add the following lines in the Program cs file writer PDFOptions new PDFOptions writer PDFOptions Security new PdfSecurity writer PDFOptions Security UserPassword password This code sets the UserPassword property of the PdfSecurity class to the desired password You can also set the OwnerPassword property to set a separate password for the owner of the PDF file Next you can generate the password protected PDF by calling the Report Writer s Save method by passing PDF as the export format MemoryStream pdfReport new MemoryStream writer Save pdfReport WriterFormat PDF Save the PDF stream as a file after generating the password protected PDF using FileStream file new FileStream C Reports Report pdf FileMode Create System IO FileAccess Write pdfReport WriteTo file Replace “C Reports Report pdf with the desired file path and file name Run the application by pressing F You can see the generated password protected PDF file in the provided path location You can open the PDF file after entering the password Password protected PDF fileThat s it You have now generated an SSRS report as a password protected PDF using the Bold Reports Report Writer Following is the complete code for reference using BoldReports Writer using BoldReports Web using Syncfusion Pdf Security using System Net Console WriteLine Hello World ReportWriter writer new ReportWriter writer ReportProcessingMode ProcessingMode Remote writer ReportServerUrl writer ReportPath Report Path writer ReportServerCredential new System Net NetworkCredential username password writer PDFOptions new PDFOptions writer PDFOptions Security new PdfSecurity writer PDFOptions Security UserPassword password Set the data source credentials List lt DataSourceCredentials gt dataSourceCredentialsList new List lt DataSourceCredentials gt dataSourceCredentialsList Add new DataSourceCredentials Datasource name username password writer SetDataSourceCredentials dataSourceCredentialsList Generate a password protected PDF MemoryStream pdfReport new MemoryStream writer Save pdfReport WriterFormat PDF Save the PDF stream as a file using FileStream file new FileStream C Reports Report pdf FileMode Create System IO FileAccess Write pdfReport WriteTo file ConclusionI hope this blog provided sufficient guidance to generate an SSRS report as a password protected PDF document in a NET application To learn more about the Report Writer for NET and its report items look through our documentation To experience the features live check out our demo samples If you have any questions please post them in the comments section below You can also contact us through our contact page or if you already have an account you can log in to ask your question Bold Reports offers a day free trial without any credit card information required We welcome you to start a free trial and experience Bold Reports for yourself Try it and let us know what you think Catch us on Twitter Facebook and LinkedIn for info about upcoming releases |
2023-05-04 05:44:00 |
海外TECH |
Engadget |
Elon Musk's Boring Company will now build a 65-mile tunnel network underneath Las Vegas |
https://www.engadget.com/elon-musks-boring-company-will-now-build-a-65-mile-tunnel-network-underneath-las-vegas-052042663.html?src=rss
|
Elon Musk x s Boring Company will now build a mile tunnel network underneath Las VegasThe Boring Company TBC can now officially say that it s expanding its tunnel network underneath Las Vegas by miles which will add new stations to its original plan If you ll recall TBC which is owned by Elon Musk originally envisioned the Vegas Loop as an underground transportation system with miles of tunnels and stations Now the current plan is to build miles of tunnels with stations after the commissioners at Clark County Nevada have approved its latest expansion nbsp Vegas Loop is expanding miles and stations Thanks to ClarkCountyNV for the great partnership ーThe Boring Company boringcompany May According to TechCrunch the commissioners voted to after TBC s lawyer Stephanie Allen assured them that the company and not the taxpayers will be paying for the project entirely The lone dissenting vote came from Commissioner Marilyn Kirkpatrick who raised concerns about the transit system servicing only tourists and not taking resort and casino employees into account Apparently Kirkpatrick has been getting calls from people her district because it s been getting harder and harder for them to get to work due to the tunnels construction TBC s lawyer said the company has plans to expand to residential areas near the strip to accommodate workers At the moment the Vegas Loop is still just around miles long with five stops around the Las Vegas Convention Center TBC plans to dig more tunnels connecting the network to the Harry Reid International Airport Allegiant Stadium downtown Las Vegas and even to Los Angeles TechCrunch says some of the newly approved stations will be located at Las Vegas Boulevard near the airport as well as in Chinatown Town Square Las Vegas and Harmon Square nbsp This article originally appeared on Engadget at |
2023-05-04 05:20:42 |
海外ニュース |
Japan Times latest articles |
China takes the yuan global in bid to repel a weaponized dollar |
https://www.japantimes.co.jp/news/2023/05/04/business/financial-markets/china-yuan-global-weaponized-dollar/
|
china |
2023-05-04 14:02:55 |
ニュース |
BBC News - Home |
Met Gala: Lizzo bows down to 'idol' Sir James Galway |
https://www.bbc.co.uk/news/uk-northern-ireland-65475929?at_medium=RSS&at_campaign=KARANGA
|
galway |
2023-05-04 05:47:29 |
ニュース |
BBC News - Home |
Scotland 'still behind in tackling domestic abuse' |
https://www.bbc.co.uk/news/uk-scotland-65468876?at_medium=RSS&at_campaign=KARANGA
|
situations |
2023-05-04 05:23:41 |
ニュース |
BBC News - Home |
The Papers: 'Ring of steel' around King and 'protest warning' |
https://www.bbc.co.uk/news/blogs-the-papers-65477906?at_medium=RSS&at_campaign=KARANGA
|
police |
2023-05-04 05:07:45 |
ニュース |
BBC News - Home |
Why The Wicker Man has divided opinion for 50 years |
https://www.bbc.co.uk/news/uk-scotland-south-scotland-65470238?at_medium=RSS&at_campaign=KARANGA
|
horror |
2023-05-04 05:24:46 |
ニュース |
BBC News - Home |
Evan Ferguson: How Brighton teenager became Republic of Ireland's 'great hope' |
https://www.bbc.co.uk/sport/football/65472683?at_medium=RSS&at_campaign=KARANGA
|
Evan Ferguson How Brighton teenager became Republic of Ireland x s x great hope x Evan Ferguson s emergence at Brighton has been one of the Premier League stories of the season but is not so much of a surprise to those who knew him growing up |
2023-05-04 05:20:48 |
ニュース |
BBC News - Home |
Coronation: Timelapse of procession route |
https://www.bbc.co.uk/news/uk-65468057?at_medium=RSS&at_campaign=KARANGA
|
westminster |
2023-05-04 05:15:44 |
コメント
コメントを投稿