Home
Search results “Npoi style cell”
How to Apply Text and Background Color in Excel & Spreadsheet using EPPlus .NET C# [English] -PART 2
 
11:29
EPPLUS Library - Beginners Guide Part-2 ----------------------------------------------------------------- How to Apply Text and Background Color in Excel File or spreadsheet using EPPlus .NET Application [English] PART 2 ----------------------------------------------------------------------------------------------------------- Blog : https://everyday-be-coding.blogspot.in/p/epplus-library-part-2.html ------------------------------------------------------------------------------------------- Hindi Video link : https://youtu.be/gG92P6TULcg ------------------------------------------------------------------------------------------- How to apply cell text & background color in excel sheet? ------------------------------------------------------------------------------------------- Cell text color: ------------------------ In Epplus ExcelRange class has a style property. This style property is the type of ExcelStyle (seal) class. ExcelStyle class has another ExcelFont (seal class) type font properties. ExcelFont class has ExcelColor (seal class) type color property. ExcelColor has SetColor method. This method can accept Color structure object as a parameter. Example: -------------- ExcelRange Rng = new ExcelRange(); Rng.Style.Font.Color.SetColor(Color.Red); *By default EPPlus support black font color, if you are not specify any font color. Now next question in our mind, how to set cell background color? Example: -------------- Rng.Style.Fill.PatternType = ExcelFillStyle.Solid; Rng.Style.Fill.BackgroundColor.SetColor(Color.Green); Here SetColor method can support structure Color property as a parameter. You can also specify the HTML Color code. *By default Epplus support white background color. For Example: --------------------- Color DeepBlueHexCode = ColorTranslator.FromHtml("#254061"); Rng.Style.Fill.BackgroundColor.SetColor(DeepBlueHexCode); In this example FromHtml() directly accept HTML RGB (Red Green Blue) color Code. Source code: --------------------- using OfficeOpenXml; using System.IO; using System; //add two new namespace using OfficeOpenXml.Style; using System.Drawing; class Program { static void Main(string[] args) { ExcelPackage ExcelPkg = new ExcelPackage(); ExcelWorksheet wsSheet1 = ExcelPkg.Workbook.Worksheets.Add("Sheet1"); using (ExcelRange Rng = wsSheet1.Cells[2, 2, 2, 2]) { Rng.Value = "Welcome to Everyday be coding - tutorials for beginners"; Rng.Style.Font.Size = 16; Rng.Style.Font.Bold = true; Rng.Style.Font.Italic = true; } //First Border Box using (ExcelRange Rng = wsSheet1.Cells[5, 2, 8, 4]) { Rng.Value = "Text Color & Background Color"; Rng.Merge = true; Rng.Style.Font.Bold = true; Rng.Style.Font.Color.SetColor(Color.Red); Rng.Style.Fill.PatternType = ExcelFillStyle.Solid; Rng.Style.Fill.BackgroundColor.SetColor(Color.LightBlue); } wsSheet1.Protection.IsProtected = false; wsSheet1.Protection.AllowSelectLockedCells = false; ExcelPkg.SaveAs(new FileInfo(@"D:\New.xlsx")); } } Now execute this code and see a new file ("New.xlsx") is created on D: drive. ----------------------------------------------------------------------------------------------------------- Blog : https://everyday-be-coding.blogspot.in/ ----------------------------------------------------------------------------------------------------------- Facebook : https://www.facebook.com/Everyday-Be-Coding-297647894000991 ----------------------------------------------------------------------------------------------------------- Twitter : https://twitter.com/EverydayCoding ----------------------------------------------------------------------------------------------------------- Please subscribe my YouTude channel & don't forget to like, comments, share this video. Thanks and Regards Rajdip
Views: 1879 EVERYDAY BE CODING
How to Use Wrap Text and Merge Cells Formatting to Improve Look of Excel Worksheet
 
11:47
In my experience, many accountants and financial managers do not know how to take advantage of the many formatting commands available in Excel to improve the look and the efficiency of their spreadsheets. For example, instead of typing field labels on two or more rows, use the Wrap Text Command to keep the entire label in one cell. The second example that I demonstrate in this lesson is to merge the text from a single cell across multiple cells. This tip is really useful when you want to automatically widen a column to accomodate a longer text entry without "distorting" the entire worksheet! I invite you to visit my secure online shopping website - http://shop.thecompanyrocks.com - to view all of the resources that I offer you. Danny Rocks The Company Rocks
Views: 160454 Danny Rocks
107 - Excel Cell coloring with C# App
 
03:29
Excel.Range formatRange; formatRange = xlWorkSheet.get_Range("b1", "b1"); formatRange.Interior.Color = System.Drawing. ColorTranslator.ToOle(System.Drawing.Color.Red); xlWorkSheet.Cells[1, 2] = "Red"; Moreover, you should also visit our: Website: http://www.TheEngineeringProjects.com/ Blog: http://www.theengineeringprojects.com/blog Shop: http://www.theengineeringprojects.com/shop FbPage: https://www.facebook.com/theengineeringprojects/ Twitter: https://twitter.com/SyedZainNasir Google+ : https://plus.google.com/+SyedZainNasir YouTube: http://youtube.com/TheEngineeringProjects Email: [email protected] Skype: theenggprojects Mobile / WhatsApp : +92-332-6062060 Thanks for Watching.
How to Export DataSet or DataTable into Excel in C#
 
14:14
Step by step tutorial on how to export DataTable or DataSet into an Excel file in C#. You can use this method in any c# application like Windows Form Application, WPF, ASP.NET Application also. To use this method you need to have Microsoft Excel Application installed in your system.This method will make use of Excel Interop Assembly. You can export windows form datagridview or asp.net gridview to excel using this method. Discussed points : 1) How to create excel .xlsx file in c# from data or dataset 2) Format excel cells 3) Create multiple sheets Best C# Books from Amazon (Affiliate) : ➤ http://geni.us/O6o6pe Download Project From Git Hub : ➤ https://goo.gl/TgmCZh Buy me a Coffee (Channel Support By Donation) ➤ https://goo.gl/bPcyXW Subscribe to this channel ➤ https://goo.gl/RFY5C2 Popular Videos : Build Complete Asp.Net MVC App From Scratch using Datatable Plugin : https://goo.gl/yHZcCo All You need to know about jQuery Ajax in Asp.net MVC : https://goo.gl/ZXKqT9 Link to this video ➤ https://youtu.be/yX-JOqV_ZR0 Our Website ➤ http://www.codaffection.com ______________ ✪ Related Links ________________ https://goo.gl/FxwPXb : String Vs StringBuilder in C#. https://goo.gl/KeeYku : Code Execution Time in C#. ______________ ⌘ Social Media Links ________________ Blog : http://www.codaffection.com Facebook : https://www.facebook.com/codaffection Google plus : https://plus.google.com/+codaffection Twitter : https://twitter.com/codaffection Youtube : https://youtube.com/codaffection ______________ ↪ About this Channel ________________ CodAffection - for passionate programmers. This channel is all about teaching and inspiring developers to build applications/ websites in various technologies like Angular, NodeJS, Asp.Net MVC, JavaScript, SQL, React, Python etc. 2 Videos per Week - 12:30 PM UTC On MON and THU ______________ ₪ All Playlist ________________ https://goo.gl/gvjUJ7 : Asp.Net MVC https://goo.gl/ahk39S : Angular 5 https://goo.gl/viJcFs : Node JS https://goo.gl/itVayJ : Web API https://goo.gl/YJPPAH : MEAN Stack https://goo.gl/s1zJxo : C# Tutorial https://goo.gl/GXC2aJ : Asp.Net WebForm https://goo.gl/vHS9Hd : C# WinForm https://goo.gl/MLYS9e : MS SQL https://goo.gl/Ha71kq : Angular 4 https://goo.gl/5Vou7t : Crystal Report https://goo.gl/EPZ69B : Common C# Excercises https://goo.gl/qEWJCs : CG Exercises in C Program
Views: 33069 CodAffection
Advanced Java Tutorial #7 - Working with Excel and Apache POI
 
10:03
Advanced Java Tutorial #7 - Working with Excel and Apache POI In this tutorial I show you how easy it is to write in and read of excel files with the apache poi library. https://poi.apache.org/ You can find the source code on github: https://github.com/KriechelD/YouTubeChannel If you have any questions, feel free to write a comment ;) Subscribe now! http://www.youtube.com/subscription_center?add_user=DennisKriechel Follow on Twitter: http://twitter.com/DennisKriechel Like on Facebook: http://www.facebook.com/DennisKriechelYoutube Visit my Website: https://kriechel.de/
Views: 50189 Dennis Kriechel
C# Excel Tutorial - #1 - Open and Read Excel Files
 
07:04
Quick guide how to open and read excel file through C# application you are making.
Views: 102445 Bospear
Excel TextBox Auto Resize and Word Wrap
 
03:15
http://www.contextures.com/exceltextboxformat.html Use an Excel TextBox to add information on a worksheet, to help users get started. In Excel 2007, you can set the TextBox to resize automatically, if the text or text size is changed. In Excel 2010, the text wrapping can also be enable, when the resize is set to automatic. This video shows how to manually change the Excel 2010 settings, or use a macro to change all the text boxes.
Views: 21189 Contextures Inc.
C# - How To Create File Or Directory In C# [ With Source Code ]
 
06:48
C# Create File And Folder Source Code: http://1bestcsharp.blogspot.com/2016/12/csharp-create-file-folder.html All My Programming Projects Here --- http://bit.ly/2HrU8hK My Source Code Store --- http://bit.ly/2IhuXKA C# Course --- http://bit.ly/2rnt3C4 Programming Projects: http://1bestcsharp.blogspot.com/p/programming-projects.html visit our blog https://1bestcsharp.blogspot.com/ facebook: https://www.facebook.com/1BestCsharp twitter: https://www.twitter.com/1BestCsharp_ subscribe: http://goo.gl/nRjPKk C# And Java Programming Books http://1bestcsharp.blogspot.com/2015/04/c-and-java-programming-books.html In This C# Tutorial We Will See How To Create a File Or Folder subscribe for more tutorials More C# Tutorials: How To Check If A File / Directory Exists Or Not Using C# In Visual Studio https://www.youtube.com/watch?v=J2nA45Fkf5E How To Delete File And Folder In C# https://www.youtube.com/watch?v=EivWERbTmnY Get Selected Row Values From DataGridView Into TextBox In Csharp https://www.youtube.com/watch?v=-1CmD1DFacM How To Update Selected DataGridView Row With TextBox Using Csharp https://www.youtube.com/watch?v=6y65Qf8GzcI How To Delete Selected DataGrid Row Using Csharp https://www.youtube.com/watch?v=GzGZY-yDJzk How To Add And Update A Row To DataGridView From TextBox + Delete Row In Csharp https://www.youtube.com/watch?v=0flYZTNE7RU How To Add InputBox And Use It In C# Using Visual Studio 2013 https://www.youtube.com/watch?v=dt3ZUb8ID0I How To Add A Row To GridView From InputBox In C# https://www.youtube.com/watch?v=rZMDXIfAG5I Set Selected Row Values From DataGridView Into InputBox In C# https://www.youtube.com/watch?v=zRb-Mn1CpQo Update Selected DataGridView Row Using InputBox In C# https://www.youtube.com/watch?v=JqNbNOrq3W8 How To Add And Update A Row To DataGridView From InputBox In C# https://www.youtube.com/watch?v=ytwaSTYujOY How To Browse Image Into PictureBox Using csharp https://www.youtube.com/watch?v=qzmlJ_nrJ5s How To Populate Datagridview With Images In C# https://www.youtube.com/watch?v=f3Toz0qiDwk How To Add Image To DataGridView From PictureBox https://www.youtube.com/watch?v=McRep-GdJR4 How To Get Image From DataGridView To PictureBox In csharp https://www.youtube.com/watch?v=5J4boJy73pg How To Update DataGridView Cell Image Using PictureBox In csharp https://www.youtube.com/watch?v=3ArEJ3W5aZM How To Add CheckBox Column To DataGridView https://www.youtube.com/watch?v=brRT1h2s4zI How To Know If DataGridView CheckBoxCell Is Checked In csharp https://www.youtube.com/watch?v=AkLrQt6rs0o How To Delete GridView Checked Rows Cell Using csharp https://www.youtube.com/watch?v=v4b22BW5Ib8 How To Dispaly Datagrid Checked Rows To Another DataGrid https://www.youtube.com/watch?v=ErrVyyogKCQ How To Get The Sum Of DataGridView Column Values https://www.youtube.com/watch?v=D4zhJQo2k6A Get The Minimum Value From DataGridView Column https://www.youtube.com/watch?v=2mNVeN6ZJqI How To Get The Maximum Value From DataGridView Column Using C# https://www.youtube.com/watch?v=wmZGzUcA50A How To Get The DataGridView Column Average Value Using C# https://www.youtube.com/watch?v=hklDkWMQ9c8 How To Get The DataGridView Column Max, Min, Sum, Average Value Using C# https://www.youtube.com/watch?v=va7O4mx2l9w How To Export GridView Data To Text File https://www.youtube.com/watch?v=2XEXff4-3TY Export And Import DGV data To XML File https://www.youtube.com/watch?v=lqwU8yQJHSI Populate ComboBox Fonts Names https://www.youtube.com/watch?v=UkhLkIoPBqY c# regex https://www.youtube.com/watch?v=L7I1AwTCXUg Drop Down Menu https://www.youtube.com/watch?v=fVeFxW7fYZc Flat Button Style https://www.youtube.com/watch?v=6AYeFatOfS8 Rotate Image https://www.youtube.com/watch?v=jlIn7Vn89Io Check And unCheck All CheckBox https://www.youtube.com/watch?v=lVKJinvOHrs Show And Hide Password https://www.youtube.com/watch?v=Sx8K2KDL5uA Drag And Drop Text In From TextBox to another TextBox https://www.youtube.com/watch?v=hPOL5vw01XA Drag And Drop Image https://www.youtube.com/watch?v=6BG2aqT23eY Show Confirmation Message Before Delete https://www.youtube.com/watch?v=caQSUfRWcpY Update ListBox Selected Item https://www.youtube.com/watch?v=LWN12UkB_m0 Search And Display In TextChanged Event https://www.youtube.com/watch?v=WixXG5EplBw How To Style Text ( Font Name, Size, Style ) https://www.youtube.com/watch?v=WFrqq4qPcdk Difference Between Two Dates https://www.youtube.com/watch?v=aLQKRlNxIKA Insert Update Delete Search Display Part 1 https://www.youtube.com/watch?v=vrmE98BGVdw How To Use BindingManagerBase : Navigation https://www.youtube.com/watch?v=MuisHBMFjGo How To Use BindingManagerBase : Insert, Update, Delete https://www.youtube.com/watch?v=a2ACkybbij8
Views: 7157 1BestCsharp blog
How to Convert Files from Excel to CSV or TAB Delimited Txt
 
01:39
Help for http://www.searchbug.com/batch/phone-number.aspx when trying to upload phone number for line type identification. Please don't upload excel files. You need to convert them to csv or Tab Delimited Txt Files. This video is a tutorial on how to convert excel files to csv or tab delimited text files.
Views: 52056 SearchBug
Excel ABS Function: Return the Absolute Value | Excel in Minutes
 
01:02
How to return absolute value in Excel? Use the Microsoft Excel ABS Function FlameShaow is a YouTube channel which provides Educational Video, ranging from high school tutorial to practical computer skills. Check out our Facebook Page: https://www.facebook.com/FlameShadow2015
Views: 870 3 Minutes Tutorial
How to resolve Excel found unreadable content
 
06:37
How to resolve excel found unreadable content. This is programming of Codeigniter. when you want to export data to excel with phpexcel. You see error like that.
Views: 57056 Unik dan Nyata