I am so addicted to you videos, never happened to me before, Thanks a million for all those wonderful tutorial you presented to us.
@foxlearn5 жыл бұрын
Thank you so much !
@insomanic7785 жыл бұрын
Man, you saved my job! This class is amazing! Thank you so much!
@foxlearn5 жыл бұрын
You're welcome. thank you !
@Unknown-bm5ui3 жыл бұрын
شكرا جزيلاً لك. مبارك من قبل الرب❤️🤲.
@nicohadi52185 жыл бұрын
@Fox Learn there's an issue when DataGridViewAutoSizeColumnsMode = Fill , the columns are separated in different pages, even I manually set it to None before passing it to PrintDataGrid, is there a workaround here? PS: When the DataGridViewAutoSizeColumnsMode = None on runtime , its working fine
@foxlearn5 жыл бұрын
Thank you. Let me check again
@stephandre10943 жыл бұрын
Thanks for this and then how use it in WPF application project ?
@kusumnet2 жыл бұрын
where is the class DGVPRINTER Can you please show what you wite in that?
@sheebanismail70073 жыл бұрын
Hey! How can I adjust number of columns in printview? It prints only 3 columns in one page and takes others to next page.
@agbsoftware80187 жыл бұрын
Thanks for share :) i have a question with your class how can write a text under datagridview, ? i need write the subtotal, and total
@raffaele65773 жыл бұрын
Hello, How Can I fit the columns of the DGV in one page? Now when I print the DGV I see more than 1 page because the DGV is too large..
@lazerlight33852 жыл бұрын
Hey I'm trying to figure out how to do this could you share, if you found a solution?
@raffaele65772 жыл бұрын
@@lazerlight3385 I used report RDLC and I put only the relevant columns
@cleyva Жыл бұрын
Hello, could you please help me with the code to download the DGVPrinter?
@gameplaymemoriesYT7 жыл бұрын
Great Work Fox Learn! btw how can I change the header font style? and also my datagridview have a color alternative, how can i print only some column and without the color in header and row?
@maurodias27693 жыл бұрын
thank you very much you help me a lot I love your channel
@foxlearn3 жыл бұрын
You’re welcome. Thank you
@rong111y5 жыл бұрын
It works well for my form apps, thanks, can you also modify it in order to work for WPF?
@foxlearn4 жыл бұрын
OK. Thank you for your suggestion. Let me try to research
@hamzik225510 ай бұрын
this is amazing bro but why this doesnt work forme when i have more columns like 15 or more?
@jonathanvargas83717 жыл бұрын
good evening! You could make the data of a datagrid be sent to another but of different form: Ejp: that the datagrid1 that you are in fom1 is sending data to the form2 of the datagrid2 and later and printing them
@bluevels6 жыл бұрын
Hi thanks very much for the video, helped me a lot. I want to know if you can add a normal text after the datatable.
@svedalawoodcrafts3 жыл бұрын
Very nice, thank you for this explanation. I have a question. Q=When I print it I have 4 columns. It will print 2 columns on one page and 2 on another page. When I set Landscape it will print 3 columns on 1 page and 1 on the next. Is there a way to control column width. I saw DGVPrinter.ColumnWidthSetting but can not figure out how the column width is controlled. Any help appreciated pls.
@svedalawoodcrafts3 жыл бұрын
Ok, hrm if you make the DGV smaller in the forms it prints on one page hehe. I would still like to figure out a command to change column width if anyone knows lol.
@yusuftahakara65902 жыл бұрын
@@svedalawoodcrafts did you solve this problem?
@markroedroda2 жыл бұрын
@@svedalawoodcrafts did you solve the problem
@jonathanvargas83717 жыл бұрын
I congratulate you are very good your videos recently you are sealed but I like many your videos is more recommended to my friends to follow you
@gameplay4u2968 жыл бұрын
its very helpful thanxxxx FOX LEARN..i have a little problem i want to get data specific according to query not all the table to print..what should i do plz help....
@foxlearn8 жыл бұрын
Hi, You can use linq to query data For Example (var query = from o in db.Customers where o.City == "Your condition" select o).ToList() Thanks you
@gameplay4u2968 жыл бұрын
Thank u soo much ..............
@gameplay4u2968 жыл бұрын
i can use (and) with where clause?????????? how???????
@foxlearn8 жыл бұрын
Hi, You can use where o.City == "Your condition" && o.PostalCode == "Your postal code". Thanks
@gameplay4u2968 жыл бұрын
Thank uuuuuuuu soo much....my problem solved thax for your guide..
@saifsameer11993 жыл бұрын
Thank you, can you add the print code from right to left
@abraofrancisco71987 жыл бұрын
Hi Fox Learn! How can I set the page on horizontal ?
@asvexx95254 жыл бұрын
I was also looking for this funcuon. Thank you.
@karalord53144 жыл бұрын
Thanks ...Just perfect working..Excelente....
@foxlearn4 жыл бұрын
Thank you !
@mostafakhorami77892 ай бұрын
Hey can u give me permission to download from google drive th dgvprinter class? Tanx❤
@code4devsprogramming1242 жыл бұрын
Thanks bro..you give me an idea for my next project..😀
@taltnamartkelaa3 жыл бұрын
thank you very much Do you have a VB.Net tutorial like this?
@foxlearn3 жыл бұрын
At this time no, but i'll upload soon
@syedhamza53414 жыл бұрын
where to get dgvPrinter class?
@hieplee53737 жыл бұрын
Would you please show an example of how to print without prompting a print dialog? Thank you.
@foxlearn6 жыл бұрын
bit.ly/2PXclHn . Thank you !
@govindsarda69197 жыл бұрын
you are the BEST Bro...!!!!!!
@foxlearn6 жыл бұрын
Thank you so much !
@alphatech78654 жыл бұрын
Can you please solve this error in your given DGVPrinter file System.ComponentModel.Win32Exception: 'A StartDocPrinter call was not issued'
@foxlearn4 жыл бұрын
OK. Thank you. I'll check again
@pXxDisasteRxXq4 жыл бұрын
ok, but how can I format the columns and rows dimensions and get sure that the datagridview will correctly put on a single page? cause if I have a "long" grid, with a lot of columns and long values in rows, I've seen that the procedure puts the grid on more sheets. how can I link the page dimensions with the datagridview rows and columns dimensions?
@miguelsaavedra66292 жыл бұрын
Hola nos podría habilitar el DGVPrinter para poder descargarlo
@manly_garroway2 жыл бұрын
I'm creating the data in the datagridview virtually, but when I get the output, I encounter an empty table. What could be the reason?
@mindgamessoftwaredevelopme77262 жыл бұрын
DGVPrinter error after using DGVPrinter please help !!!!
@shubhamsahuSD6 жыл бұрын
can you video on creating a sql data structure for attendance in which employee or student names comes from another table. but i am bit confuse about attendance table dsign
@foxlearn6 жыл бұрын
OK. Thank you for your suggestion
@chipaxd4383 жыл бұрын
nice proyect, this helpme much, thanks.!!!!
@foxlearn3 жыл бұрын
Thank you !
@masakrs7 жыл бұрын
Can you tell me is it possible to put landscape as default way of printing datagridview that im printing (idea is to rotate datagridview content before it hits the printer selection, so basically if I put landscape on printer it will print portrait), problem is that when I press "print" my printers are set to portrait by default, and I don't want change that coz ppl that r using my program usually print in portrait, so they will always have to change it just for this report
@foxlearn7 жыл бұрын
Hi. You can view this video kzbin.info/www/bejne/Y4alZqB6hd10o9E to know how to do that. Thank you
@alexeisafronov66274 жыл бұрын
It's real is good content :) Very helpful class :)
@foxlearn4 жыл бұрын
Thank you !
@ishakmco3186 Жыл бұрын
Please link icant access to download class
@Toturials4 жыл бұрын
thanks, How to print preview.
@makatinggolteb7 жыл бұрын
Hi, how do I write something on this report, for example I want to write something "Welcome" between the TItle and Subtitle? and also how can I input a logo in here? Thanks!
@makatinggolteb7 жыл бұрын
nvm, I solved it by having printer.printDocument.PrintPage += PrintPage; and a PrintPage method, in this way you can modify the printing of document like adding images or your own texts with specified locations. PLEASE LIKE SO OTHERS CAN SEE THIS, IT WOULD HELP FOR SOMEONES. THANKS FOXLEARN!
@foxlearn7 жыл бұрын
Hi, I think you should use Report Viewer instead print datagridview, see this video to solve kzbin.info/www/bejne/m5ycd3SOq7mkfdU , kzbin.info/www/bejne/gKDMfal3otCmmdE . Thank you
@BigWaveyDavey5 жыл бұрын
Perhaps an easier way is to just insert a CR/NL after your title followed by welcome text: printer.Title = "First Line Title Here Welcome Message Here"
@mistersimple73034 жыл бұрын
where to copy the dgvprint.cs, sir? Is it directly copy dgvprinter.cs to our projectfile? coz i dont see it when i try refreshing it inside visual studio interface
@mistersimple73034 жыл бұрын
well, i can make it manually from adding c# class. The thing is why can't I make model from database which already has table data? I mean it can be selected, but it wont appear in the model entities.
@rangagurusinghe1047 жыл бұрын
Hi, my project language is VB , don't you have same solution in vb ?
@foxlearn7 жыл бұрын
I'll upload version vb.net as soon as possible. Thank you
@rangagurusinghe1047 жыл бұрын
thank you, I appreciate it. by the way I have another thing to know. If I hide a column in datagridview and then print , will it print the hided one as well or no ? Actually I want to print only visible columns and data in datagridview.
@in2raju4983 жыл бұрын
Thank you very much........................
@sheikhshuaib84517 жыл бұрын
Hi ,great video but i have around 15 columns, so please show how to print the datagridview in landscape thanks
@BigWaveyDavey5 жыл бұрын
printer.PageSettings.Landscape = true;
@luun95493 жыл бұрын
how do i print multiple datagriedview under each other ?
@maymaracademy69984 жыл бұрын
is it possible to add an image as header....? or any suggestions so i can modify your DGVPrinter Class to tweak.....
@RohitKumar-ys4ow3 жыл бұрын
can I use this in WPF aswell?
@foxlearn3 жыл бұрын
I think no
@garyvalverde91233 жыл бұрын
Thank you very much, idols
@foxlearn3 жыл бұрын
Thank you !
@kashikhamani25006 жыл бұрын
how can we increase grid header and rows column height and width on printing time thanks.
@foxlearn6 жыл бұрын
You should use rdlc or crystal report, print datagridview too simple. Thank you !
@md.abdullahalmurad23124 жыл бұрын
How can i print the values vertically in printed page?
@mlambogavin63053 жыл бұрын
nice video but its only display 3 columns instead of 5 column in my datagridview what ill be the problem
@jonasmwalula17608 жыл бұрын
Hell there,thank you very much for this great tutorial, can you please tell me how to set the printing page orientation in Landscape?
@foxlearn8 жыл бұрын
Ok. I'll research and update soon. thank you for your suggestion !
@arek78935 жыл бұрын
here you go printer.PageSettings.Landscape = true;
@katrykonig24663 жыл бұрын
Is it possible to export it as pdf?
@ajitnimbalkar27538 жыл бұрын
Nice Tutorial. can u tell me how to show this two words like "Members" in left position and "Amount" in right position in footer.
@foxlearn8 жыл бұрын
Hi, This .dll don't support. You can use Report Viewer. thanks
@makatinggolteb7 жыл бұрын
Hi, I have 9 Columns in my dgv, how do i make the printing to be landscape? TIA
@foxlearn7 жыл бұрын
Hi, You can set PrintDocument pd = new PrintDocument(); pd.DefaultPageSettings.Landscape = true; Please try again. Thank you so much !
@so2mali8 жыл бұрын
Thanks a lot.. It's very helpful..
@foxlearn8 жыл бұрын
Thank you !
@waqarhussain56857 жыл бұрын
please give me link to download DGVPrinter
@bineyobengpeter85896 жыл бұрын
Please give me the link to download DGVPrinter
@shubhamsahuSD6 жыл бұрын
can i change page resolution from a4 to a5 or a2
@foxlearn6 жыл бұрын
I think you can. You can try var paperSize = printDoc.PrinterSettings.PaperSizes.Cast().FirstOrDefault(e => e.PaperName == "A5"); printDoc.PrinterSettings.DefaultPageSettings.PaperSize = paperSize;
@shubhamsahuSD6 жыл бұрын
thanks, i were use it as printer.PageSettings.PaperSize.Height = Value of combobox ; and printer.PageSettings.PaperSize.Waidth = Value of combobox ; and value in combobox is predefined (e.g A4 = 210 × 297) now i will correct it
@iandrilon86716 жыл бұрын
I Have an error it showing The call Ambiguous between the following methods or properties how to solve this ?
@mahfuzurrahman22487 жыл бұрын
It is very helpful .. Thanks to fox learn team.. I am having a problem in printing " When my DataGridVeiw contains more than 7 or 8 columns it prints rest columns in another page " So I need help how can i minimize the DataGridVeiw Size so that it can print more than 8 columns in one page Thanks in advance
@foxlearn7 жыл бұрын
Hi, I think you should use Report Viewer or Crystal report: See kzbin.info/www/bejne/ZmicgH-DfNaNrck / kzbin.info/www/bejne/m5ycd3SOq7mkfdU . Thank you
@sameerkhatri19187 жыл бұрын
Hello Sir, If you have got the solution for this please let me know ASAP. Thanks. You can email me on ersameer.khan05@gmail.com
@akhterhussain1005 жыл бұрын
how to print number of copies of one label ,i want input field for number of copies printing asp.net c#
@foxlearn5 жыл бұрын
What do you mean? can you describe more details.
@akhterhussain1005 жыл бұрын
@@foxlearn i want to print one page multiple time ,by input number of pages/copies to be print
@muhammadhassaan2625 жыл бұрын
Hi There.. I'm trying to print a data grid view but i'm getting 5 columns in one page and 4 columns on the other page.. Can you help me how to solve it??
@muhammadhassaan2625 жыл бұрын
I've tried to change page preference to portrait to landscape. but tits not working..
@foxlearn5 жыл бұрын
I think you should use rdlc or crystal report. print datagridview too simple
@muhammadhassaan2625 жыл бұрын
@@foxlearn okay thanks..! :)
@ekren202 жыл бұрын
thank you for all...
@markfranklin21107 жыл бұрын
I have a problem where I am printing from a datagridview but each column is printed in a new page, can you please advise? Thanks
@foxlearn7 жыл бұрын
Hi, Make sure your code is correct. Please check again. Thank you
@iostreamdoteych60137 жыл бұрын
is this working on MySql Database?
@29miguel19968 жыл бұрын
only work on visual basic 2015?
@foxlearn8 жыл бұрын
Hi, You can work with C#, VB.NET on visual 2013/2015 . Thanks
@marclouielopez77396 жыл бұрын
What site i can download the DGV2Print ? Can you send me a link? Please because this is for my project mam / sir
@foxlearn6 жыл бұрын
bit.ly/2PXclHn . Thank you !
@marclouielopez77396 жыл бұрын
i mean ma'am/sir the DLL or the extension you use the DGVPrinter.cs
@marclouielopez77396 жыл бұрын
please help me to solve this because this is my problem in my program
@foxlearn6 жыл бұрын
Copy the class to your project, then rebuild the project. Remember change your namespace. thank you !
@marclouielopez77396 жыл бұрын
i try it .Thank you so much ! :)
@Luke-go1yb5 жыл бұрын
Hello, you really helped me with this one but i have one problem. I have 8 columns and want to print them on one page but the printer only puts 6 on one page and the other 2 on the next. Please help, thanks.
@foxlearn5 жыл бұрын
I think you should use rdlc report or crystal report. thank you !
@Blastpv3 жыл бұрын
found a solution to the issue?
@yusuftahakara65902 жыл бұрын
@@Blastpv did you find any solution?
@Blastpv2 жыл бұрын
@@yusuftahakara6590 rdlc
@yusuftahakara65902 жыл бұрын
@@Blastpv thanks i will try. I put two datagridview and their one's visible is false other is true. They have same data. I resize datagridview which visible is false and its all columns seen in pdf.
@ahmadarbilli49276 жыл бұрын
pls how can i get DGVPrinter.dll file
@Coder_Satyabrata_S4 жыл бұрын
Very informative
@muntaseradnan69648 жыл бұрын
Works great Thanks :D
@foxlearn8 жыл бұрын
Thank you :D
@darkblazer4256 жыл бұрын
Hi! How can i change the font style in title and subtitle thanks.!
@foxlearn6 жыл бұрын
Print DataGridView too simple, you should use RDLC report, then you can change font size...etc
@sehhabadry48817 жыл бұрын
how to print Landscape
@lisselcastelo92726 жыл бұрын
Do you have VB.Net tutorial like this?
@foxlearn6 жыл бұрын
At this time no, but i'll update vb.net soon for all tutorials
@lisselcastelo92726 жыл бұрын
+Fox Learn Thanks .. Godbless
@sergiogman7 жыл бұрын
thank you very much!! Recommended
@UmarFarooq-jn7dt4 жыл бұрын
Thanks for the script. Means a lot.
@MrYemenBoy3 жыл бұрын
Nice videos and music
@WaqasAli3018 жыл бұрын
will u please tell me how can i Print to file instead of direct printing? i am stuck at this as i have to save document in pdf. reply please
@foxlearn8 жыл бұрын
Hi, You need to install adobe pdf or pdf viewer. You can save the document to pdf file. thanks
@knvnnnn6 жыл бұрын
how to adjust the paper size?
@jhwils7 жыл бұрын
does this work in visual studio 2010
@foxlearn7 жыл бұрын
Yes, It can work
@jhwils7 жыл бұрын
Fox Learn thanks it work but who to change the row height
@Gol_D_Roger_The_Pirate_King7 жыл бұрын
DGVprinter link is broken.
@dhancomendoza16245 жыл бұрын
is there any way to do this in vb.net
@foxlearn5 жыл бұрын
OK. Thank you for your suggestion. I'll upload soon !
@aftabali93725 жыл бұрын
why isn't savefiledialog opening when i click print please help me
@benjamarporns33198 жыл бұрын
Copy DGVPrinter file to anywhere?
@foxlearn8 жыл бұрын
Hi, You can download below this video. Thanks
@WaqasAli3018 жыл бұрын
Thanks for the great video.
@foxlearn8 жыл бұрын
Thank you so much :)
@CH-qw6yy4 жыл бұрын
I loaded up the code and there are an abundance of errors. Not sure how everyone else got it working but as is I have a bunch of errors. So many its not worth trying to figure it out.
@andrinovariswanto46537 жыл бұрын
Oh hiii dude, im so surprise with your idea for create that class.. :D
@foxlearn7 жыл бұрын
Thank you
@chesterdelsocorro62256 жыл бұрын
i have a number in rowheader but when i print, the cell was empty. i used printer.PrintRowHeaders = true;
@foxlearn6 жыл бұрын
What error are you getting?
@chesterdelsocorro62256 жыл бұрын
@@foxlearn it does'nt have an error but the rowheader are empty when i print it out. i want the row number to be included in printing but it turn out blank. the rowheader contains the row number.
@foxlearn6 жыл бұрын
You should use Report, print datagridview too simple
@David-uc9dc4 жыл бұрын
in my Datagridview I have 11 rows but when I print it only comes out 7, how can I solve it?
@Blastpv3 жыл бұрын
found a solution to the issue?
@bertugfahriozer46757 жыл бұрын
you must add this code for LANDSPACE -> printer.PageSettings.Landscape = true;
@joginderdumolia90457 жыл бұрын
Hii i need mulitiple value insert in database in c# application
@foxlearn7 жыл бұрын
Hi, You can use entity framework or dataset to save multiple value to your database. You can view this database kzbin.info/www/bejne/fJacmZmjo9OAoNE Thank you
@joginderdumolia90457 жыл бұрын
may you give me online class asp.net ,sir this is not multiple value i need one id and multiple row like genral store when we purchase more things ure name is only one but more item inserted in other row so tel me what wil do
@joginderdumolia90457 жыл бұрын
how to attac sql file with setup file of c# application plz make video
@charli3847 жыл бұрын
Excelente clase.. muchas gracias por compartir. Funciona de maravilla :). Excelent class, thx a lot for share. It works great :). Saludos de Perú
@foxlearn7 жыл бұрын
Thank you so much :)
@NicolePillmanVEVO7 жыл бұрын
hi, as active PrintPreviewDialog ? thx
@foxlearn6 жыл бұрын
Thank you !
@luqmanehassane76095 жыл бұрын
Hi everyone, someone can help me to get dgvprinter.dll?
@unpocodetodo-twitch70064 жыл бұрын
in visual 2010 ?
@kirankumary.k40627 жыл бұрын
DGVPrinter.cs its Library Files? or program fiel? can you help me... if it is library file means send link plz one more Northwind.bak file also library file? send me a link how to donload and import it waiting for ur reply Thank You
@foxlearn7 жыл бұрын
Hi, DGBPrinter.cs is a class library, You can download Northwind database at northwinddatabase.codeplex.com/ .Thank you
@kirankumary.k40627 жыл бұрын
Thank You Can you send video link how to import northwind database to vb10
@kirankumary.k40627 жыл бұрын
can you plz send me the video how to import Northwind library to visual studio 10
@anjeloxd78837 жыл бұрын
can you use this in vb.net?
@foxlearn7 жыл бұрын
Yes, You can do with VB.NET
@kashikhamani25006 жыл бұрын
How do i increase Title fontsize
@foxlearn6 жыл бұрын
Please try [your_grid].TitleFont = new Font("Times New Roman", 15.0f); . Thank you !