<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by John Ansa on Medium]]></title>
        <description><![CDATA[Stories by John Ansa on Medium]]></description>
        <link>https://medium.com/@bloggrammer?source=rss-db62f654ac46------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fV2b1JauDyKAt1e-4rslTg.jpeg</url>
            <title>Stories by John Ansa on Medium</title>
            <link>https://medium.com/@bloggrammer?source=rss-db62f654ac46------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 13:19:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bloggrammer/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Integrating a PDF Viewer into a WPF Application Using WebView2]]></title>
            <link>https://medium.com/@bloggrammer/integrating-a-pdf-viewer-into-a-wpf-application-using-webview2-bb15b8c311a6?source=rss-db62f654ac46------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb15b8c311a6</guid>
            <category><![CDATA[windows-pdf-viewer]]></category>
            <category><![CDATA[wpf]]></category>
            <category><![CDATA[c-sharp-programming]]></category>
            <category><![CDATA[pdf-viewer]]></category>
            <dc:creator><![CDATA[John Ansa]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 08:57:31 GMT</pubDate>
            <atom:updated>2025-11-10T10:02:03.823Z</atom:updated>
            <content:encoded><![CDATA[<h4>Adding PDF viewer in a WPF application</h4><p>In modern software development, the need to integrate versatile tools like PDF viewers into applications has become increasingly common.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/634/1*rVPLFFXqYnIFwX572KsYlg.png" /></figure><p>For Windows Presentation Foundation (WPF) developers, adding a PDF viewer can greatly enhance the usability and functionality of their applications.</p><p>WebView2, powered by Microsoft Edge, offers a seamless way to embed web content into desktop applications, making it an excellent choice for integrating a PDF viewer into a WPF app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*Yn5l6dlVbEdwegndRidlzQ.jpeg" /></figure><p>In this blog post, I’ll guide you through the process of adding a PDF viewer to your WPF application using WebView2. This tutorial assumes you have a basic understanding of WPF and Visual Studio.</p><p><strong>A Quick Note on PDF Generation</strong></p><p>Before we dive into viewing PDFs, it’s worth noting that many WPF applications also need to create or manipulate PDFs before displaying them. If you need to generate reports, invoices, or modify existing PDFs in your application, IronPDF handles the creation side perfectly. It can <a href="https://ironpdf.com/tutorials/html-to-pdf/">generate PDFs from HTML</a>, merge documents, add watermarks, and extract content — then you can display them using the <a href="https://ironpdf.com/blog/net-help/webview2-csharp-example-guide/">WebView2</a> viewer we’ll set up below.</p><pre>// Quick example - Generate a PDF then view it<br>var renderer = new ChromePdfRenderer();<br>var pdf = renderer.RenderHtmlAsPdf(&quot;&lt;h1&gt;Report&lt;/h1&gt;&lt;p&gt;Your content...&lt;/p&gt;&quot;);<br>pdf.SaveAs(&quot;output.pdf&quot;);<br>// Then display in WebView2 (as shown below)</pre><p>IronPDF supports .NET Framework for WPF and is already compatible with .NET 10 (coming November 2025), ensuring your PDF solution stays current. Now let’s set up the viewer for displaying these PDFs.</p><h3>How to Add PDF Viewer in WPF</h3><ol><li><strong>Create a WPF Project:</strong><br>Open Visual Studio and create a new WPF project or use an existing one where you want to integrate the PDF viewer.</li><li><strong>Install WebView2 NuGet Package:</strong><br>Right-click on your WPF project in Solution Explorer, select “Manage NuGet Packages,” and search for “Microsoft.Web.WebView2.” Install the package into your project.</li><li><strong>Add WebView2 Control to Your WPF Window:</strong><br>In your XAML file, add the WebView2 control by including the following namespace:</li></ol><pre>xmlns:wv2=&quot;clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf&quot;</pre><p>Then, add the WebView2 control to your window:</p><pre>&lt;wv2:WebView2 Source=&quot;path-to-your-pdf-file&quot;/&gt;</pre><p>4. <strong>Run Your Application:</strong></p><p>Build and run your WPF application. Verify that the WebView2 control displays the PDF file as expected and test its functionalities.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dIRi6LHv-cT_dDsKZJFg_Q.png" /></figure><h3>Conclusion:</h3><p>Integrating a PDF viewer into a WPF application using WebView2 offers a flexible and efficient solution. WebView2 allows seamless integration of web content, making it a powerful tool for displaying PDFs and leveraging web-based functionalities within your desktop application.</p><p>By following the steps outlined in this post, you can enhance your WPF application by enabling users to view and interact with PDF documents directly within the application interface, providing a more immersive and convenient user experience.</p><p>Remember, this tutorial provides a basic implementation. You can further customize the PDF viewer’s appearance, implement additional functionalities, and handle edge cases according to your application’s requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb15b8c311a6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Attention, Software Engineers!]]></title>
            <link>https://medium.com/@bloggrammer/attention-software-engineers-e603e948e1d8?source=rss-db62f654ac46------2</link>
            <guid isPermaLink="false">https://medium.com/p/e603e948e1d8</guid>
            <dc:creator><![CDATA[John Ansa]]></dc:creator>
            <pubDate>Sun, 31 Dec 2023 21:18:09 GMT</pubDate>
            <atom:updated>2023-12-31T21:18:09.913Z</atom:updated>
            <content:encoded><![CDATA[<p>Did you realize that over 50% of your skills often come from outside your 9-to-5 job? 😮</p><p>It’s mind-boggling, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rG7EnMqFn2iMLeYbqqq9Qw.png" /></figure><p>I’ve realized that some of my most valuable learnings and skills haven’t necessarily stemmed from my main job, but from diving into side projects.</p><p>These projects have been like a playground where I get to experiment, learn new technologies, and challenge myself in ways my regular job might not allow.</p><p>For instance, last year, I was working on a side project to create a mobile app for managing personal finances. While my main job didn’t involve mobile development, this project allowed me to explore new programming languages, and user interface design, and even delve into the complexities of security in finance apps. The experience I gained was invaluable and boosted my confidence in tackling diverse challenges.</p><p>This year, I started tinkering with a personal project — an app idea that had been floating in my mind for ages. Not only did it let me apply what I knew, but it pushed me to learn new languages and frameworks too!</p><p>Whether it’s building a website, experimenting with a new framework, creating a fun app, or contributing to an open-source project, side projects can be your playground for growth.</p><p>They’re like a sandbox where you can freely explore, make mistakes, and level up your skills.</p><p>So, my advice to all of you incredible engineers out there:</p><p>Don’t underestimate the power of side projects!🙌</p><p>They’re not just hobbies but incredible opportunities to upskill and expand your knowledge base.</p><p>Seize the opportunity to grow beyond the confines of your job description and explore the endless possibilities that your creativity can lead you to.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e603e948e1d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Investing 101: A Simple Guide for Beginners]]></title>
            <link>https://medium.com/@bloggrammer/investing-101-a-simple-guide-for-beginners-114c2b0f78cd?source=rss-db62f654ac46------2</link>
            <guid isPermaLink="false">https://medium.com/p/114c2b0f78cd</guid>
            <category><![CDATA[invest]]></category>
            <category><![CDATA[investing]]></category>
            <category><![CDATA[guides-and-tutorials]]></category>
            <category><![CDATA[investment]]></category>
            <dc:creator><![CDATA[John Ansa]]></dc:creator>
            <pubDate>Thu, 19 Jul 2018 09:25:12 GMT</pubDate>
            <atom:updated>2018-07-19T09:25:12.585Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*VCAlsbmXYE-uuB8K-gT02w.png" /></figure><p>Have you ever wondered why so many people invest?</p><p>Now, imagine yourself creating additional income stream. i.e. your money is busy making more money for you so that in few years to come, you’d have a LOT more money than you would have if you haven’t chosen to invest your money.</p><p><strong>Isn’t that interesting?</strong></p><p>Well, people would want to invest for so many reasons — mostly for greater <a href="http://en.wikipedia.org/wiki/Security_%28finance%29">financial security</a> in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*uB3TLRU6Ht9UsOQSkqPT8g.jpeg" /></figure><p>So, if you are looking to set yourself up for greater financial security in the future, then you have to set aside some of your money now in investments that could appreciate over time.</p><p>As a beginner, it can be hard to know where — and how — to get started with investing. But not to worry. <strong>If you’re just getting started with investing, here’s what you need to know;</strong></p><p>Can anyone become a good, a successful, investor? We firmly believe that they can — that <em>YOU</em> can.</p><p>It’s really just a matter of making a commitment to learning what you need to know (such as how to use technical indicators) and then working diligently to apply the knowledge and skills that you obtain.</p><p><strong>This guide will help you to…</strong></p><ul><li><strong>Learn the basics of investing, including the different investment types and how they work</strong></li><li><strong>Understand some investment terminologies</strong></li><li><strong>Choose the right investments that suits your purpose</strong></li><li><strong>Make confident investment decisions</strong></li></ul><h3>Ready to Invest? Let’s Get Started</h3><p><a href="https://www.ansacareers.com/investing-beginners-guide"><strong>Continue Reading…</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=114c2b0f78cd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Getting a College Degree in Prison]]></title>
            <link>https://medium.com/@bloggrammer/getting-a-college-degree-in-prison-bca0b46717cf?source=rss-db62f654ac46------2</link>
            <guid isPermaLink="false">https://medium.com/p/bca0b46717cf</guid>
            <category><![CDATA[prison-system]]></category>
            <category><![CDATA[behind-bars]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[prison]]></category>
            <category><![CDATA[prison-education]]></category>
            <dc:creator><![CDATA[John Ansa]]></dc:creator>
            <pubDate>Sun, 25 Sep 2016 02:58:37 GMT</pubDate>
            <atom:updated>2016-09-25T02:58:37.348Z</atom:updated>
            <content:encoded><![CDATA[<p>I would never wish a prison sentence on someone, but if it happens to you, you still have a chance at getting a college education. I had to write an article about <a href="http://www.christopherzoukis.com/">Chrisopher Zoukis</a> a few months ago and it opened my eyes about education in the prison system. Chris Zoukis is an award winning author, poet, and essay writer that is currently serving time in jail. He has used that time to get a college education, all through the web. The article below chronicles his journey and the journey of others in prison who want to pursue a college degree.</p><p>Many of the <a href="https://medium.com/thebestschoolsonline.tumblr.com/">top online colleges</a> now offer opportunities for prisoners to get an education through their institutions. That is the beauty of online studies: they provide educational opportunities to those who would not have them otherwise. Zoukis has written countless articles about the impact education could have for people behind bars. By educating prisoners, we can provide them with a chance to be productive citizens when they get out of jail. The internet is starting to allow that to happen.</p><p>Most prisoners have trouble getting into college initially because they don’t have access to a lot of the people they would need to talk to for enrollment. This is especially true when it comes to getting financial aid. Nevertheless, prisoners can get into school online with the right amount of drive. Most of them can only attend school part time based on the amount of time they get on the internet. If they have a drive for learning though, they can get a degree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*bZg8w6Qw4Gqb9UgDlVRMkA.jpeg" /></figure><p>The best part of prison education is that it gives prisoners something to do with their time behind bars. My father used to work as a recreational director for a prison, and he said most of the inmates spent their time contemplating what mischief they could get in. By providing an education for prisoners online, we can allow them to use their free time for good. That could make a big difference in their productivity when they get out.</p><p>Some people argue that prisoners shouldn’t have the chance to go to college because they’re supposed to spend their time in punishment. Getting an education may not be a punishment, but it is certainly not a game. Inmates have to work extremely hard at getting a college education because they do not get much time on the computer. The time they do get is mainly comprised of checking assignments and grades. They might as well have the chance to better themselves while they are in prison so they can better the country when they get out. This helps those of us who are not in prison just as much as it helps those who are in prison.</p><p>If you want to learn more about Chris Zoukis and his work with prison education, you can check out his blog: <a href="http://www.prisoneducation.com/">PrisonEducation.com</a>. He also runs a <a href="http://www.prisoneducation.com/prison-education-news/">prison education newsletter</a> that you could look into for information about his work with prisoners and the education system. He is doing some amazing things for the prison system, and he’s still behind bars. Imagine what he’ll do when he is out of prison putting his college education to use.</p><p>Author Bio:</p><p>Ansa John of <a href="http://www.eduansa.com/">EduAnsa</a> is a creative blogger, copywriter and a content writer at <a href="http://www.ansacareers.com/">Ansa Careers</a>. If he had a hair on his head for every blog post and web page he’s written, he’d have a thick head of hair. Ansa is the author of <a href="http://www.eduansa.com/guide-getting-industrial-placement/"><strong>*How to Easily Secure Your Internship*</strong></a>and has recently published the free <a href="http://www.eduansa.com/get-internship-in-nigeria"><strong>Resources to Apply for Internship Opportunities</strong></a> — Connect with <a href="https://plus.google.com/110548618390261768624/posts"><strong>Ansa on Google+</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bca0b46717cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>