<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: UmamaheswariPrakash</title>
    <description>The latest articles on DEV Community by UmamaheswariPrakash (@umamaheswariprakash).</description>
    <link>https://dev.to/umamaheswariprakash</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1088359%2F67df5ac0-09b1-4f7d-a4fd-6187d82fd81e.jpg</url>
      <title>DEV Community: UmamaheswariPrakash</title>
      <link>https://dev.to/umamaheswariprakash</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/umamaheswariprakash"/>
    <language>en</language>
    <item>
      <title>General Data Protection Regulation (GDPR) – Part 1</title>
      <dc:creator>UmamaheswariPrakash</dc:creator>
      <pubDate>Wed, 07 Jun 2023 03:57:51 +0000</pubDate>
      <link>https://dev.to/boldreports/general-data-protection-regulation-gdpr-part-1-26dj</link>
      <guid>https://dev.to/boldreports/general-data-protection-regulation-gdpr-part-1-26dj</guid>
      <description>&lt;p&gt;What is more complicated than astrophysics, more widely discussed than celebrity gossip, and tougher than herding kittens? The General Data Protection Regulation (GDPR). Ok, it might not be as popular as celebrity gossip, but in the business world (especially the software world), this is the newest Kardashian.&lt;/p&gt;

&lt;p&gt;GDPR is a law that was passed on April 27, 2016, and it goes into effect on May 25, 2018. It affects anyone who is doing business or providing goods or services to any business within the European Union (EU). The EU currently consists of Austria, Belgium, Bulgaria, Croatia, the Republic of Cyprus, the Czech Republic, Denmark, Estonia, Finland, France, Germany, Greece, Hungary, the Republic of Ireland, Italy, Latvia, Lithuania, Luxembourg, Malta, the Netherlands, Poland, Portugal, Romania, Slovakia, Slovenia, Spain, Sweden, and the United Kingdom (&lt;a href="https://www.gov.uk/eu-eea"&gt;https://www.gov.uk/eu-eea&lt;/a&gt;). The goals of this law are to make companies prioritize privacy and to protect consumers’ privacy in an active and thoughtful way. The GDPR implementation process is causing companies to rethink how they handle data, what data they handle, and the implications of their data collection and management practices. This law replaces the 1995 EU Directive that currently governs privacy regulations.&lt;/p&gt;

&lt;p&gt;In this two-part blog series, we will provide a broad overview of the key elements of the GDPR. The first entry focuses on the fundamental concepts of the GDPR, and the second focuses on what companies should do to ensure compliance with the new regulations. Please note that you should consult an attorney if you have any specific questions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Privacy Worldview&lt;/strong&gt;&lt;br&gt;
To ensure you are up to date on all the latest watercooler talk (and no, I do not mean the latest celebrity gossip), it is helpful to examine the core principles of the GDPR. One important thing to consider is the origin of this law. The GDPR reflects the EU’s worldview that there is a fundamental right to privacy. This means they believe privacy is the intrinsic right of every human: every man, woman, and child deserves the right to privacy. In today’s technology-driven world, information is widely shared, and data breaches are common. The EU believes that privacy laws should adapt to the changing technological landscape, and they decided that applying stricter guidelines to companies who want to do business in the EU would be a good first step to help protect people’s privacy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The New Playbook&lt;/strong&gt;&lt;br&gt;
At its heart, the GDPR is the new playbook that gives EU citizens control over their personal data. The EU has enacted the law to establish principles that protect consumers’ privacy: companies should safeguard people’s data, should not use it in any way that is not allowed by the person who owns the data, and should not keep people’s personal information longer than necessary. As an example, if a gentleman decides to order cable TV, he might need to have his credit card on file to pay the monthly bill. However, the TV provider must have adequate security protection (we will discuss what constitutes adequate protection below), may only keep the card on file while the gentleman is a customer and for a reasonable time afterwards, and may not sell the card to a marketing company to track cable providers.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What Does the Law Cover?&lt;/strong&gt;&lt;br&gt;
Next, we will examine what the GDPR covers. Under the law, “personal data” means any information relating to an identified or identifiable natural person (“data subject”); an identifiable natural person is one who can be identified, directly or indirectly, in particular by reference to an identifier such as a name, an identification number, location data, an online identifier, or one or more factors specific to the physical, physiological, genetic, mental, economic, cultural, or social identity of that natural person. This definition sounds like it comes from some law textbook, but simply put, it means that almost any piece of data you can find on a person is considered personal data and should be protected. This means that IP addresses, mobile device IDs, and the names of purchased products are all personal data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Why Does GDPR Matter to You?&lt;/strong&gt;&lt;br&gt;
Money runs the world, and although it is not as exciting as celebrity gossip, financial considerations will compel businesses to comply with the GDPR. In addition to being the law within the EU, the GDPR can be very expensive if you choose not to follow it. This law holds businesses responsible for protecting personal data; companies must be financially accountable, and if there is negligence, then a company can be fined for failing to protect consumers’ information. Companies can be held accountable for the GREATER of either 4% of their global annual revenue or 20M Euros, whichever is higher.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Who Must Follow the GDPR?&lt;/strong&gt;&lt;br&gt;
If your company is located in the EU, markets to anyone in the EU, operates a website accessible to people in the EU, or provides goods or services to a human in the EU, then the GDPR applies. This means almost every corporation is subject to the GDPR and needs to take steps to ensure they are compliant. For software developers, this could affect how an app is set up, whether you want to distribute your product in the EU, and what sort of encryption levels you use. More importantly, as you launch new products or consider setting up a company, you should weigh the effects of the GDPR.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Big Ticket Bullets of the GDPR&lt;/strong&gt;&lt;br&gt;
Not a “check the box:” The purpose of the GDPR is not to offer a “check the box” compliance piece but to protect a fundamental notion of privacy. Compliance with this law requires companies to sit down and review how they collect and manage data.&lt;br&gt;
Give people the right to data correction: This means you must offer people who have given you their information the ability to change or update their data.&lt;br&gt;
You must ask permission: You can only use data for things you have asked permission for. You cannot use data for any purposes other than those for which you have explicitly asked permission.&lt;br&gt;
How long you keep data: You cannot keep consumers’ data longer than is necessary. Check with your attorney on what that means for you and your business.&lt;br&gt;
You must have privacy as the default: All data should be encrypted, and privacy and information security should be your primary concerns by default. Security measures should be fundamental to your operations and should not merely be post-breach considerations.&lt;br&gt;
There is a right to be forgotten: If a person requests that you “forget” their information, you must do so within 30 days.&lt;br&gt;
Data breaches must be reported: the GDPR requires companies to report any data breach within 72 hours of becoming aware of the breach. If for any reason this requirement is not met, the reason for the delay must be explained when the report is made.&lt;br&gt;
&lt;strong&gt;Where Can I Find More Information?&lt;/strong&gt;&lt;br&gt;
Attorneys all over the world are specializing in the GDPR; however, no one has been tested in court, so no one is truly an expert. Finding an attorney to help you and your corporation is a good first step, and examining the GDPR statute is a useful starting point. In our next post we will provide additional information.&lt;/p&gt;

&lt;p&gt;Now that we have explored the basic elements of the GDPR, our next blog will focus on the more detailed aspects of the law. It may not be as spicy as celebrity gossip, but if it affects you and your business, I promise it is worth the read.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disclaimer:&lt;/strong&gt;&lt;br&gt;
Nothing in this blog should be construed as legal advice. You should consult an attorney prior to making any legal decisions.&lt;/p&gt;

</description>
      <category>company</category>
      <category>gdpr</category>
      <category>legal</category>
      <category>syncfusion</category>
    </item>
    <item>
      <title>Print SSRS Reports in ASP.NET Core with Report Writer and PrintJS</title>
      <dc:creator>UmamaheswariPrakash</dc:creator>
      <pubDate>Fri, 26 May 2023 07:03:30 +0000</pubDate>
      <link>https://dev.to/boldreports/print-ssrs-reports-in-aspnet-core-with-report-writer-and-printjs-4i5p</link>
      <guid>https://dev.to/boldreports/print-ssrs-reports-in-aspnet-core-with-report-writer-and-printjs-4i5p</guid>
      <description>&lt;p&gt;ASP.NET Core is a popular framework for building web applications that can run on various platforms, and one of the requirements for many web applications is to generate and print SSRS reports. In this blog, we will explore how to generate and print SSRS reports using Bold Reports’ Report Writer and PrintJS in an ASP.NET Core application. We’ll discuss the benefits of using Bold Reports &lt;a href="https://www.boldreports.com/embedded-reporting/aspnet-core-report-writer/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23" rel="noopener noreferrer"&gt;ASP.NET Core Report Writer&lt;/a&gt;, a powerful reporting tool that allows developers to create and design sophisticated reports using various data sources. Additionally, we’ll learn how PrintJS, a lightweight and straightforward library, can facilitate the printing of PDF files generated from RDL reports using Bold Reports Report Writer.&lt;/p&gt;

&lt;p&gt;Let’s dive in!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;Prerequisites&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Ensure your development environment includes the following:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;a href="https://visualstudio.microsoft.com/downloads/" rel="noopener noreferrer"&gt;Visual Studio Code&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://dotnet.microsoft.com/en-us/download" rel="noopener noreferrer"&gt;.NET6.0 SDK&lt;/a&gt;(or) Higher.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Create an ASP.NET Core 6 application
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Open Visual Studio Code and go to the terminal menu; click on the &lt;strong&gt;New Terminal&lt;/strong&gt; menu item.&lt;/li&gt;
&lt;li&gt;Create an ASP.NET Core Web MVC application. On executing the following command, the ASP.NET Core Web App (MVC) template will be created.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

dotnet new mvc --framework net6.0 --name CoreReportWriter


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;p&gt;3.The ASP.Net Core Web App (MVC) is created.&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fin0wkl947t1iqo1698co.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fin0wkl947t1iqo1698co.png" alt="Create a new .NET 6 project."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Install the NuGet Packages
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;To use the Bold Reports Report Writer library in your project, you need to install the &lt;a href="https://www.nuget.org/packages/BoldReports.Net.Core" rel="noopener noreferrer"&gt;BoldReports.Net.Core&lt;/a&gt; NuGet package.&lt;/li&gt;
&lt;li&gt;Run the following commands to install the BoldReports.Net.Core NuGet package in the application.&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

    cd CoreReportWriter
    dotnet add package BoldReports.Net.Core


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Install Print.js package
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;First, you need to install Print.js in your ASP.NET Core project to use the PrintJS related APIs. You can install it using &lt;a href="https://www.npmjs.com/package/print-js" rel="noopener noreferrer"&gt;npm&lt;/a&gt; or by downloading it from the Print.js &lt;a href="https://printjs.crabbly.com" rel="noopener noreferrer"&gt;website&lt;/a&gt;.&lt;/li&gt;
&lt;li&gt;To install it using npm, in your project’s Terminal, run the following command.&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;

     npm install print-js


&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;h2&gt;
  
  
  Create a controller action to Print SSRS reports
&lt;/h2&gt;

&lt;p&gt;Next, you need to create a controller action that generates and prints SSRS reports in PDF format.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Controllers/HomeController.cs file and create local variables inside the HomeController class, like the following.
```
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;private Microsoft.AspNetCore.Hosting.IWebHostEnvironment _hostingEnvironment;&lt;br&gt;
public HomeController(Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnvironment)&lt;br&gt;
{&lt;br&gt;
    _hostingEnvironment = hostingEnvironment;&lt;br&gt;
}&lt;/p&gt;


&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;2.Add the **PrintPDF()** function to create a **FileStream** object called **inputStream** to open the “sales-order-detail.rdl” file in read-only mode. Refer to the following code snippet.  

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;public IActionResult PrintPDF()&lt;br&gt;
  {&lt;br&gt;
     var rdlPath = "\Resources\sales-order-detail.rdl";&lt;br&gt;
     FileStream inputStream = new(_hostingEnvironment.WebRootPath + &lt;br&gt;
     rdlPath,FileMode.Open,FileAccess.Read);&lt;br&gt;
  }&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3.To generate the SSRS RDL report as a PDF, pass the file stream object to the Bold Reports Report Writer’s **LoadReport** method and call the **Save** method to save it as a PDF file. The following code does this.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;BoldReports.Writer.ReportWriter writer = new();&lt;br&gt;
writer.LoadReport(inputStream);&lt;br&gt;
using MemoryStream memoryStream = new();&lt;br&gt;
writer.Save(memoryStream, BoldReports.Writer.WriterFormat.PDF);&lt;br&gt;
return File(memoryStream.ToArray(), "application/pdf", "example.pdf");&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
_This will pass the report as a PDF to the client side._

## Initialize Print.js to print the PDFs

To print the PDF files generated from the server side to the client side, you need to use Print.js’s printJS API in your cshtml page.

1. Open the Views/Home/Index.cshtml page.
2. Remove the existing **div** code and add the following code. This will create a button to print the PDF file.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Print SSRS reports&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;3.Since I already installed the **print-js** package, to make this sample simple, I am copying and pasting the print.js file from the node\_modules/print-js/dist folder to the wwwroot/js folder in my application.
4.Now, I can use the print.js file in my Index.cshtml file and call the **printJS** method to save the server side’s file object as a PDF file on the client side. To do this, in the Index.cshtml page, add a Scripts section and add the print.js location path. Call the server side’s **PrintPDF** method and get the file and pass the file object to the **printJS()** method to save it as a PDF. The following code explains this.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a class="mentioned-user" href="https://dev.to/section"&gt;@section&lt;/a&gt; Scripts {&lt;br&gt;
   &lt;br&gt;
   &amp;lt;br&amp;gt;
    document.getElementById(&amp;amp;quot;print-SSRS-reports&amp;amp;quot;).addEventListener(&amp;amp;quot;click&amp;amp;quot;, function () {&amp;lt;br&amp;gt;
      fetch(&amp;amp;quot;/Home/PrintPDF&amp;amp;quot;).then(response =&amp;amp;gt; response.blob()).then(blob =&amp;amp;gt; {&amp;lt;br&amp;gt;
       printJS({printable:URL.createObjectURL(blob),type:&amp;amp;quot;pdf&amp;amp;quot;});&amp;lt;br&amp;gt;
      });&amp;lt;br&amp;gt;
    });&amp;lt;br&amp;gt;
   &lt;br&gt;
}&lt;/p&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;
## Add already created reports

1. Create a Resources folder in the wwwroot folder in your application to store the RDL reports.
2. Download the sales-order-detail.rdl file from [here](https://www.syncfusion.com/downloads/support/directtrac/general/ze/sales_order_detail109018224). For more sample reports, refer to the [samples and demos](https://help.boldreports.com/embedded-reporting/aspnet-core-reporting/report-viewer/samples-and-demos/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23) section.
3. Extract the compressed file and paste the sales-order-detail.rdl file to the  **Resources**  folder.

## Run the application to print SSRS reports using PrintJS

Run the application and click the “Print SSRS reports” button. The print page will automatically open, allowing you to print the SSRS report file.

![A computer screen displaying the process of printing an SSRS report as a PDF using PrintJS.](https://www.boldreports.com/wp-content/uploads/2023/05/Run-the-application-compressed.jpg)
_Printing an SSRS Report as a PDF using PrintJS._

## Conclusion

I hope this blog provided sufficient guidance for printing SSRS reports in an ASP.NET Core app with Report Writer and PrintJS. To learn more about the Report Writer for .NET, look through our [documentation](https://help.boldreports.com/embedded-reporting/aspnet-core-reporting/report-writer/export-ssrs-rdl-report/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23). To experience the features live, check out our [demo samples](https://demos.boldreports.com/aspnet-core/ReportWriter/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23).

If you have any questions, please post them in the comments section below. You can also contact us through our [contact page](https://www.boldreports.com/contact/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23), or if you already have an account, you can [log in](https://www.boldreports.com/account/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23) to ask your question.

Bold Reports offers a [15-day free trial](https://www.boldreports.com/pricing/?utm_source=dev&amp;amp;utm_dev=partner_blog&amp;amp;utm_campaign=dev_SSRSReportsPrintJS_cy23) 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](https://twitter.com/boldreportsoffl), [Facebook](https://www.facebook.com/boldreportsofficial/), and [LinkedIn](https://www.linkedin.com/showcase/boldreportsofficial) for info about upcoming releases.

The post [Print SSRS Reports in ASP.NET Core with Report Writer and PrintJS](https://dev.to/barbraweke/print-ssrs-reports-in-aspnet-core-with-report-writer-and-printjs-10j0-temp-slug-8418100) appeared first on [Bold Reports](https://www.boldreports.com).
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>aspnetcore</category>
      <category>print</category>
      <category>pdf</category>
      <category>ssrs</category>
    </item>
  </channel>
</rss>
