Click here to Skip to main content
15,885,278 members

Comments by BulletVictim (Top 200 by date)

BulletVictim 15-Dec-17 7:28am View    
In my experience you need to create an image object from the base64, then with a bookmark in the document place the image at said bookmark.
BulletVictim 12-Dec-17 8:12am View    
Have a look at https://www.syncfusion.com/products/windows-forms . I use this a lot especially when exporting DataTables to Excel files, really quick and no need for Office to be installed either.
.try this to compile your DataTable from the datagridview. https://stackoverflow.com/questions/6295161/how-to-build-a-datatable-from-a-datagridview.
Also from your code it seems like you are trying to set the DataSource of the GridView with the manual compiled DataTable. for that see what you get here. https://www.google.co.za/search?dcr=0&ei=ntQvWoCdF8vOa4P_n-AF&q=c%23+manually+add+row+to+datatable&oq=c%23+manually+add&gs_l=psy-ab.3.0.0j0i22i30k1.250624.254116.0.258019.12.9.0.3.3.0.300.1009.2-3j1.4.0....0...1c.1.64.psy-ab..5.7.1017...0i20i263k1.0.8BOcWLZ3adk
BulletVictim 12-Dec-17 7:58am View    
Where is your problem? Please elaborate a bit more on what you want to do.
From what I can see what you are trying to do, you might want to convert the dataTable to a List<customclass>. From there using Linq to group the items in the list based on a defining value per each level, then loop through each List<List<customclass>>.
Hope this points you in the right direction.
Also just as a tip, if looping through a DataTable, try using foreach(DataRow row in DataTable.Rows, Just a bit cleaner code.
BulletVictim 12-Dec-17 7:50am View    
Quite simple, you will need to update the Log4Net package in the previously compiled solutions that you have added to the new solution.
Alternatively just reference the Log4Net Dll from the packages location in one of the previous solutions. Might not have the Nuget functionality, but should solve your problem.
BulletVictim 31-Aug-16 8:49am View    
Are you open to Jquery to do this?
WebCodeCam-1.0.0 is a rather easy and usefull plugin that can be used to access the webcam.
Some custom js methods to capture the image to an array, Ajax call to a c# WebMethod, loop through the image byte array. Inside C# webMethod, declare system.drawing.image = byteArrayToImage(byte array). system.drawing.image.save(path). Done