Victor Charles
asked on
Help with exporting data from a DataGridView
Hi,
How do I export data from two DataGrids in one PDF file exactly as shown in the Grids?
Thanks,
Victor
How do I export data from two DataGrids in one PDF file exactly as shown in the Grids?
Thanks,
Victor
ASKER
Hi,
I don't, was hoping .NET library already had the required files to achieve this, I can export in excel, but was hoping to also export in PDG or Word.
Thanks,
Victor
I don't, was hoping .NET library already had the required files to achieve this, I can export in excel, but was hoping to also export in PDG or Word.
Thanks,
Victor
You won't be able to do it without a .NET library that is capable of document creation/generation. The only free libraries from Microsoft are Open XML SDK (Word only) or Office COM (this one is not recommended to use). There are also some 3rd party libraries which you can accomplish it by creating a template document first and then populate it with your (DataGridView) data from your application.
ASKER
Hi,
I'm trying to avoid third party controls, how do I export the data in word?
Thanks,
Victor
I'm trying to avoid third party controls, how do I export the data in word?
Thanks,
Victor
Hi Victor;
iTextSharp is a free PDF library and can be install into your project by using NuGet from within Visual Studio. In the search box just type in iTextSharp.
This may be a better option because if I am not mistaken in order to print from a MS Word document each user of your code is going to need a copy MS Word so that the functions in MS Word can be called.
iTextSharp is a free PDF library and can be install into your project by using NuGet from within Visual Studio. In the search box just type in iTextSharp.
This may be a better option because if I am not mistaken in order to print from a MS Word document each user of your code is going to need a copy MS Word so that the functions in MS Word can be called.
ASKER
Hi,
I'm sorry for the late reply, will look into and get back to you. I'm trying not to use third party controls unless I have no choice.
Thanks,
Victor
I'm sorry for the late reply, will look into and get back to you. I'm trying not to use third party controls unless I have no choice.
Thanks,
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi,
Will do.
Thank You.
Victor
Will do.
Thank You.
Victor
Not a problem Victor, as always glad to help.
ASKER
Thank You.
Do you have a PDF library which will produce documents in PDF format?