{"id":4776,"date":"2009-09-23T14:40:06","date_gmt":"2009-09-23T14:40:06","guid":{"rendered":"http:\/\/blog2.fusioncharts.com\/?p=15"},"modified":"2026-01-20T14:37:33","modified_gmt":"2026-01-20T09:07:33","slug":"how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2","status":"publish","type":"post","link":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/","title":{"rendered":"How to Use FusionCharts in Windows .NET Apps (WinForms): Part 2 2026"},"content":{"rendered":"How did it feel to use <a href=\"https:\/\/www.fusioncharts.com\/fusioncharts\">FusionCharts Suite XT<\/a> in your .NET application? Cool huh? We thought so too. In case you are wandering what we are talking about, please <a title=\"How to use FusionCharts in Windows .NET Applications\" href=\"https:\/\/fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms\/\" target=\"_blank\" rel=\"noopener noreferrer\">check out our earlier post<\/a> on how to use FusionCharts <a href=\"https:\/\/www.fusioncharts.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Java script charts<\/a> in Windows .NET applications.\r\n\r\nLike we promised, we&#8217;re back with a lot more that you can do with FusionCharts in your Windows .NET applications. If you thought what you achieved after reading the previous article was great, well, \u201cYou ain&#8217;t seen nothing yet\u201d. Alright, we are getting cheesy. Straight to the point now.\r\n<h2>Generating charts from data entered in a form<\/h2>\r\nFirstly, let&#8217;s come to a basic use for our charts in .NET applications. We will enter data in a form and plot the chart according to the entered data. For this we will use the same method we used in the previous post, termed as the <em>dataXML<\/em> method. In this method, the data is provided to the chart dynamically during runtime.\r\n\r\nLet us consider a scenario. You are a guitar player in a rock and roll band and you want to buy a new guitar. You want to consider your options and then make the best buy. So what do you do? You plot the prices of each guitar on a chart and then make an educated decision. Okay, we will admit it \u2013 it does not make for an example that you would use in your day-to-day life but then you get the point, don&#8217;t you?\r\n\r\nLet us only consider 3 guitars for this demo. Of course you can choose to plot as many as you want. So here we go:\r\n\r\n1. Remember our old form from the <a title=\"How to use FusionCharts in Windows .NET Applications (WinForms)\" href=\"https:\/\/fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a>? Let us make some changes to it, keeping the basic two elements (<em>ChartContainer<\/em> and <em>btnLoadChart<\/em>)\u00a0 the same. We will add 6 textboxes and 6 labels to that form to finally get this:\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Form for entering data\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\" alt=\"Form for entering data\" border=\"0\" \/><\/p>\r\nWe will make a note of the following things:\r\n<ul>\r\n \t<li>The textboxes are labeled <em>textbox1, textbox2, textbox3, textbox4, textbox5<\/em> and <em>textbox6<\/em> one row after another.<\/li>\r\n \t<li>The button with text Load Chart is the same as the <em>btnLoadChart<\/em> from the <a title=\"How to use FusionCharts in Windows .NET Applications\" href=\"https:\/\/fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a>.<\/li>\r\n \t<li>The Shockwave object is also the same as the <em>ChartContainer<\/em> object from the <a title=\"How to use FusionCharts in Windows .NET Applications\" href=\"https:\/\/fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms\/\" target=\"_blank\" rel=\"noopener noreferrer\">previous post<\/a>.<\/li>\r\n \t<li>For aesthetics, we have placed the fields where data will be entered in a <em>groupbox<\/em>.<\/li>\r\n<\/ul>\r\n2. Alright, let us write the code to actually load the chart according to the data entered. This chart will be loaded when the button <em>btnLoadChart<\/em> is clicked, just as in the previous post. So go to the <em>btnLoadChart_Click<\/em> event and insert the following code:\r\n<pre class=\"lang:javascript\">\/\/Specify the format, path and name of the swf file which will render the chart.\r\n\/\/if \"file:\/\/\/\" is added before the path and the xml after the path in the format\r\n\/\/file:\/\/\/xmlpath?=dataxml=&lt;Your Xml here&gt;&amp;registerwithjs=1\r\n\/\/then the chart will be loaded directly with no chance of any error.For a different chart, change the\r\n\/\/name from column2d to the required chart, add the chart swf to the application startuppath and modify the xml as required.\r\nstring appPath = \"file:\/\/\/\" + Application.StartupPath + \"Column2D.swf\";\r\nappPath = appPath.Replace(\"\", \"\/\");\r\n\r\n\/\/Creating the string which will act as the xml according to the format\r\n\/\/file:\/\/\/xmlpath?=dataxml=&lt;Your Xml here&gt;&amp;registerwithjs=1. The xml itself \/\/will comprise of the names of each field and their respective values.\r\n\/\/Hence by using string concatenation, we add the string values of the textboxes\r\n\/\/consisting of the labels and the Integer values constitute the\r\n\/\/corresponding values of those labels.\r\nstring ChartXml = appPath + string.Format( @\"?dataXML=&lt;chart caption='Guitar Prices' xAxisName='Guitar Names' yAxisName='Cost' rotatelabels='1' slantlabels='1' showvalues='0' numberPrefix='$' useRoundEdges='1'&gt;&lt;set label='{0}' value='{1}' \/&gt; &lt;set label='{2}' value='{3}' \/&gt; &lt;set label='{4}' value='{5}' \/&gt;&lt;\/chart&gt;&amp;registerwithjs=1\", textBox1.Text, float.Parse(textBox2.Text), textBox3.Text, float.Parse(textBox4.Text), textBox5.Text, float.Parse(textBox6.Text));\r\n<\/pre>\r\n3. Using you-know-what, I found out the prices of three popularly used guitars.\r\n<ul>\r\n \t<li>Fender Stratocaster &#8211; $ 2530<\/li>\r\n \t<li>Gibson Les Paul &#8211; $ 2199<\/li>\r\n \t<li>Ibanez JEM7VWH &#8211; $ 3466.65<\/li>\r\n<\/ul>\r\nWe make another note here: Making music is very expensive these days.\r\n\r\nNow we get to the fun part. Run the application. Enter the names and the respective prices of each of these guitars. Click on the <em>Load Chart<\/em> button. And wallah!! Your chart is loaded.\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Chart generated from the data entered in the form\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916fc3970b-800wi.jpg\" alt=\"Chart generated from the data entered in the form\" border=\"0\" \/><\/p>\r\n\r\n<h2>Exporting chart data as CSV<\/h2>\r\nWith the guitar names and values, you were able to generate the chart. But what if you want to store the guitar brands and their corresponding prices for future reference? Let us discuss a solution for that oo. You can easily get the data from the chart back in a Comma Separated Value (CSV) format. Let us see how to do that.\r\n\r\n1. First let us get to the design aspect. We would not want to clutter our Form too much. So what we do is, we add another Form to our Application. In the Solution Explorer, right click on the application name and go to <em>Add<\/em> &gt; <em>Windows Form<\/em>.\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Adding a form to the application\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5e7fec1970c-800wi.jpg\" alt=\"Adding a form to the application\" border=\"0\" \/><\/p>\r\nIn the <em>Add New Item<\/em> dialog box, select <em>Windows Form<\/em> and click <em>Add<\/em>.\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Adding Windows Form\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5e7ffe5970c-800wi.jpg\" alt=\"Adding Windows Form\" border=\"0\" \/><\/p>\r\n2. Let us customize this new form first. From the Items Toolbar add a <em>RichTextBox<\/em> to the Form. This is where the data from the chart will be displayed in the CSV format.\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Adding a RichTextBox to the form\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5e801ed970c-800wi.jpg\" alt=\"Adding a RichTextBox to the form\" border=\"0\" \/><\/p>\r\nIn the properties window, change its <em>Modifiers<\/em> to <em>Public<\/em>. We do this because we need to access this object from <em>Form1<\/em>.\r\n\r\n3. Also add a button to the form. Change its Name to <em>btnClose<\/em> and its text to <em>Close<\/em>. This button when clicked will close the form. The final form will look like this:\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Form2 with the Close button\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a591756d970b-800wi.jpg\" alt=\"Form2 with the Close button\" border=\"0\" \/><\/p>\r\n4. Like we said earlier, the <em>btnClose<\/em> when clicked will close the <em>Form2<\/em>. So in the <em>btnClose_Click<\/em> event, write the code:\r\n\r\n<em>this.close();<\/em>\r\n\r\nNow we&#8217;re done with this form. Go back to <em>Form1<\/em>.\r\n\r\n5. Add a button to <em>Form1<\/em>, which when clicked will get the chart data, load <em>Form2<\/em> and display the CSV data in the <em>RichTextBox<\/em> object of <em>Form2<\/em>.\r\n\r\nChange the name of this button to <em>btnGetCSV<\/em> and its text to <em>Export chart as CSV<\/em>. Also set the <em>Enabled<\/em> property of this button as False. This is because the user will only be able to export chart data after the chart is loaded.\r\n\r\nAfter adding this button, <em>Form1<\/em> should look like:\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Form1 with Export Chart as CSV button\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5e8047f970c-800wi.jpg\" alt=\"Form1 with Export Chart as CSV button\" border=\"0\" \/><\/p>\r\n6. Before we proceed any further, we need to add certain references to our project. To add the reference, in the Menu bar, go to <em>Project &gt; Add Reference<\/em>.\r\n\r\n7. In the <em>Add Reference<\/em> window, select <em>System.Web<\/em> and click OK.\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"To add references to the project \" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5917873970b-800wi.jpg\" alt=\"To add references to the project \" border=\"0\" \/><\/p>\r\n8. Time to get our hands dirty with some code again. First, we need to define a function that will pass a parameter to the loaded chart. This parameter will in turn invoke an internal function of the chart which will return the data as CSV values. Since we are calling a Flash function, let us name this function <em>FSCall<\/em>. So add this piece of code to your class Form1 : Form.\r\n<pre class=\"lang:javascript\">private string FSCall(string func_Name)\r\n{\r\n\/\/This function will generate an XML String which is used to CALL\r\n\/\/any function which is present in the FusionCharts Chart loaded on our Form\r\n\/\/The parameter passed to this function will define the name of\r\n\/\/the function that we are calling.\r\n\r\nreturn \"\";\r\n\r\n}\r\n<\/pre>\r\nNow this function needs to be called when the button <em>btnGetCSV<\/em> is clicked. Also when this button is clicked, our new Form needs to be opened and the CSV values displayed in the <em>RichTextBox<\/em> in that form. So in the <em>btnGetCSV_Click<\/em> event, add the following code.\r\n<pre class=\"lang:javascript\">\/\/To invoke any function in the chart, we have to pass\r\n\/\/an XML source to the chart specifying the function name being called\r\n\/\/This XML is created by our function FSCall\r\n\/\/Here we pass the XML created by FSCall to the chart\r\n\/\/To do this, we use the method CallFunction of the Shockwave \/\/Object(ChartContainer).\r\n\/\/So an XML of the form \r\n\r\n\/\/is passed to the chart which then returns\r\n\/\/the CSV data, which we store in string x.\r\n\r\nstring x = ChartContainer.CallFunction (FSCall (\"getDataAsCSV\"));\r\n\r\n\/\/Decode the returned chart data, which is in HTML encoded format.\r\n\r\nx = System.Web.HttpUtility.HtmlDecode(x);\r\n\r\n\/\/Remove the and tag which are present\r\n\/\/in the returned CSV data. This is because the\r\n\/\/returned data is also in an xml form, between the tags\r\n\r\n\/\/and\r\n\r\nx = x.Replace(\"\", \"\");\r\n\r\nx = x.Replace(\"\", \"\");\r\n\r\n\/\/Create a new instance of Form2\r\n\r\nForm2 f2 = new Form2() ;\r\n\r\n\/\/In the richtextbox object richTextBox1 of Form 2, display the CSV data.\r\n\/\/This step will not work if the Modifiers property of the\r\n\/\/richtextbox is not set to Public.\r\n\r\nf2.richTextBox1.Text = x;\r\n\r\n\/\/Show the new Form f2.\r\n\r\nf2.ShowDialog ();\r\n<\/pre>\r\nAlso, for the <em>btnLoadChart_Click<\/em> event, along with the existing code, add one more line to enable the button <em>btnGetCSV<\/em> when <em>btnLoadChart<\/em> is clicked.\r\n\r\n<code lang=\"asp\">btnGetCSV.Enabled = True<\/code>\r\n\r\n9. Now lets get to the fun part. Again. Run the application and re-enter the data in the form. Click on the Load Chart button. The chart gets loaded. Note how, when you click on the load chart button, the button <em>Export Chart as CSV<\/em> gets enabled. Click on the <em>Export Chart as CSV<\/em> button and you will see that it does exactly what it is intended to. You can now copy this data and store it or do anything you want with it. Pretty amazing huh?\r\n<p class=\"image-center\"><img decoding=\"async\" class=\"asset-image\" title=\"Chart with exported data\" src=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5e809aa970c-800wi.jpg\" alt=\"Chart with exported data\" border=\"0\" \/><\/p>\r\n\r\n<h2>The show is not over<\/h2>\r\nWe realized that the post will get uncontrollably large if we are unable to resist our temptation to just do more and more with the charts. So keep looking at this space, as we will be back with more on how to use FusionCharts in your .NET Windows applications, including how to use remote files to load your chart and how to export your chart as an image soon.","protected":false},"excerpt":{"rendered":"<p>How did it feel to use FusionCharts Suite XT in your .NET application? Cool huh? We thought so too. In case you are wandering what we are talking about, please check out our earlier post on how to use FusionCharts Java script charts in Windows .NET applications. Like we promised, we&#8217;re back with a lot [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[62,120,128,398],"coauthors":[718],"class_list":["post-4776","post","type-post","status-publish","format-standard","hentry","category-tutorials","tag-c","tag-dotnet","tag-export","tag-winforms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2<\/title>\n<meta name=\"description\" content=\"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2\" \/>\n<meta property=\"og:description\" content=\"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\" \/>\n<meta property=\"og:site_name\" content=\"FusionBrew - The FusionCharts Blog\" \/>\n<meta property=\"article:published_time\" content=\"2009-09-23T14:40:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-20T09:07:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\" \/>\n<meta name=\"author\" content=\"Shamasis Bhattacharya\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shamasis Bhattacharya\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\n\t    \"@context\": \"https:\/\/schema.org\",\n\t    \"@graph\": [\n\t        {\n\t            \"@type\": \"Article\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#article\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\"\n\t            },\n\t            \"author\": {\n\t                \"name\": \"Shamasis Bhattacharya\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/cfce3e3c2ecb07767d8d2b84490460f7\"\n\t            },\n\t            \"headline\": \"How to Use FusionCharts in Windows .NET Apps (WinForms): Part 2 2026\",\n\t            \"datePublished\": \"2009-09-23T14:40:06+00:00\",\n\t            \"dateModified\": \"2026-01-20T09:07:33+00:00\",\n\t            \"mainEntityOfPage\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\"\n\t            },\n\t            \"wordCount\": 1174,\n\t            \"commentCount\": 15,\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\",\n\t            \"keywords\": [\n\t                \"c#\",\n\t                \"dotnet\",\n\t                \"export\",\n\t                \"winforms\"\n\t            ],\n\t            \"articleSection\": [\n\t                \"Tutorials\"\n\t            ],\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"CommentAction\",\n\t                    \"name\": \"Comment\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#respond\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebPage\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\",\n\t            \"name\": \"How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2\",\n\t            \"isPartOf\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#website\"\n\t            },\n\t            \"primaryImageOfPage\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage\"\n\t            },\n\t            \"thumbnailUrl\": \"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\",\n\t            \"datePublished\": \"2009-09-23T14:40:06+00:00\",\n\t            \"dateModified\": \"2026-01-20T09:07:33+00:00\",\n\t            \"description\": \"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.\",\n\t            \"breadcrumb\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#breadcrumb\"\n\t            },\n\t            \"inLanguage\": \"en-US\",\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"ReadAction\",\n\t                    \"target\": [\n\t                        \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/\"\n\t                    ]\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"ImageObject\",\n\t            \"inLanguage\": \"en-US\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\",\n\t            \"contentUrl\": \"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg\"\n\t        },\n\t        {\n\t            \"@type\": \"BreadcrumbList\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#breadcrumb\",\n\t            \"itemListElement\": [\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 1,\n\t                    \"name\": \"Home\",\n\t                    \"item\": \"https:\/\/www.fusioncharts.com\/blog\/\"\n\t                },\n\t                {\n\t                    \"@type\": \"ListItem\",\n\t                    \"position\": 2,\n\t                    \"name\": \"How to Use FusionCharts in Windows .NET Apps (WinForms): Part 2 2026\"\n\t                }\n\t            ]\n\t        },\n\t        {\n\t            \"@type\": \"WebSite\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#website\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/\",\n\t            \"name\": \"FusionBrew - The FusionCharts Blog\",\n\t            \"description\": \"Get tips and tricks on how to build effective Data Visualisation using FusionCharts\",\n\t            \"publisher\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\"\n\t            },\n\t            \"potentialAction\": [\n\t                {\n\t                    \"@type\": \"SearchAction\",\n\t                    \"target\": {\n\t                        \"@type\": \"EntryPoint\",\n\t                        \"urlTemplate\": \"https:\/\/www.fusioncharts.com\/blog\/?s={search_term_string}\"\n\t                    },\n\t                    \"query-input\": {\n\t                        \"@type\": \"PropertyValueSpecification\",\n\t                        \"valueRequired\": true,\n\t                        \"valueName\": \"search_term_string\"\n\t                    }\n\t                }\n\t            ],\n\t            \"inLanguage\": \"en-US\"\n\t        },\n\t        {\n\t            \"@type\": \"Organization\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#organization\",\n\t            \"name\": \"FusionCharts\",\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/\",\n\t            \"logo\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/\",\n\t                \"url\": \"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg\",\n\t                \"contentUrl\": \"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg\",\n\t                \"width\": 1,\n\t                \"height\": 1,\n\t                \"caption\": \"FusionCharts\"\n\t            },\n\t            \"image\": {\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/\"\n\t            }\n\t        },\n\t        {\n\t            \"@type\": \"Person\",\n\t            \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/cfce3e3c2ecb07767d8d2b84490460f7\",\n\t            \"name\": \"Shamasis Bhattacharya\",\n\t            \"image\": {\n\t                \"@type\": \"ImageObject\",\n\t                \"inLanguage\": \"en-US\",\n\t                \"@id\": \"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/image\/ed27a4cd012abbe8b9e545e1815f0781\",\n\t                \"url\": \"\/blog\/wp-content\/wphb-cache\/gravatar\/ca8\/ca8f277e2c21f1bcf6b56e4364e15157x96.jpg\",\n\t                \"contentUrl\": \"\/blog\/wp-content\/wphb-cache\/gravatar\/ca8\/ca8f277e2c21f1bcf6b56e4364e15157x96.jpg\",\n\t                \"caption\": \"Shamasis Bhattacharya\"\n\t            },\n\t            \"url\": \"https:\/\/www.fusioncharts.com\/blog\/author\/shamasis\/\"\n\t        }\n\t    ]\n\t}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2","description":"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/","og_locale":"en_US","og_type":"article","og_title":"How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2","og_description":"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.","og_url":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/","og_site_name":"FusionBrew - The FusionCharts Blog","article_published_time":"2009-09-23T14:40:06+00:00","article_modified_time":"2026-01-20T09:07:33+00:00","og_image":[{"url":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg","type":"","width":"","height":""}],"author":"Shamasis Bhattacharya","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shamasis Bhattacharya","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#article","isPartOf":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/"},"author":{"name":"Shamasis Bhattacharya","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/cfce3e3c2ecb07767d8d2b84490460f7"},"headline":"How to Use FusionCharts in Windows .NET Apps (WinForms): Part 2 2026","datePublished":"2009-09-23T14:40:06+00:00","dateModified":"2026-01-20T09:07:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/"},"wordCount":1174,"commentCount":15,"publisher":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg","keywords":["c#","dotnet","export","winforms"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/","url":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/","name":"How to use FusionCharts in Windows .NET Applications (WinForms) \u2013 Part 2","isPartOf":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg","datePublished":"2009-09-23T14:40:06+00:00","dateModified":"2026-01-20T09:07:33+00:00","description":"Export 2026 charts as images and automate report emails. Streamline your workflow and keep management informed effortlessly. Professional reporting today.","breadcrumb":{"@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#primaryimage","url":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg","contentUrl":"https:\/\/www.fusioncharts.com\/blog\/wp-content\/uploads\/gallery\/images\/6a010534c80b99970c0120a5916cc9970b-800wi.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.fusioncharts.com\/blog\/how-to-use-fusioncharts-in-windows-net-applications-winforms-part-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fusioncharts.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Use FusionCharts in Windows .NET Apps (WinForms): Part 2 2026"}]},{"@type":"WebSite","@id":"https:\/\/www.fusioncharts.com\/blog\/#website","url":"https:\/\/www.fusioncharts.com\/blog\/","name":"FusionBrew - The FusionCharts Blog","description":"Get tips and tricks on how to build effective Data Visualisation using FusionCharts","publisher":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fusioncharts.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fusioncharts.com\/blog\/#organization","name":"FusionCharts","url":"https:\/\/www.fusioncharts.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/","url":"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg","contentUrl":"\/blog\/wp-content\/uploads\/2020\/03\/idera-fc-logo.svg","width":1,"height":1,"caption":"FusionCharts"},"image":{"@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/cfce3e3c2ecb07767d8d2b84490460f7","name":"Shamasis Bhattacharya","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fusioncharts.com\/blog\/#\/schema\/person\/image\/ed27a4cd012abbe8b9e545e1815f0781","url":"\/blog\/wp-content\/wphb-cache\/gravatar\/ca8\/ca8f277e2c21f1bcf6b56e4364e15157x96.jpg","contentUrl":"\/blog\/wp-content\/wphb-cache\/gravatar\/ca8\/ca8f277e2c21f1bcf6b56e4364e15157x96.jpg","caption":"Shamasis Bhattacharya"},"url":"https:\/\/www.fusioncharts.com\/blog\/author\/shamasis\/"}]}},"_links":{"self":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts\/4776","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/comments?post=4776"}],"version-history":[{"count":0,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/posts\/4776\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/media?parent=4776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/categories?post=4776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/tags?post=4776"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.fusioncharts.com\/blog\/wp-json\/wp\/v2\/coauthors?post=4776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}