My team and I are working on an application using Window Form with LINQ. We need help to upload PDF and Word Document File to the Database using LINQ. Kindly assist with a code snippet on how to go about this using LINQ
Your assistance will be greatly appreciated
Thanks in advance
Create an entity with a property of type byte[]. Copy the file bytes to that property and save it in the database.
Related
I'm trying to make my program have the ability to display a Microsoft Word file on a form but not having any luck in doing so. I want to be able to open the file and display it on the form as a Read-Only. So basically just display it's contents. Various users on the web have recommended displaying files in the WebBrowser control (under toolbox). I have tried this but failed to get it working. My end goal is to be able to annotate on top of the web browser (or something of similar manner) and subsequently save the annotations along with the opened file.
I'm not that experienced in the C# language too so any help on how to achieve my problem would be greatly appreciated.
In my WPF-Application, I´ve got a lot of information in a DataGrid. Now, the step I have to do is that the user can export the data to a pdf.
Is there any simple way to export that? What is the best plugin for making pdf out of WPF/C#?
You can use the ReportViewer control which will let you save in multiple format (include .pdf).
Else, you can try some pre-made solution as this one : Export data from gridview to PDF in C#
But the best for me is to search more informations about how to use ReportViewer in C# ... it is a better solution for your problem.
I have a database on a server and I transfer the data from it to a web site. So I need to build a flash grid on this site and to load the data on it. But the problem is that I do not know how to do it. So my question is how to build a dynamic flash grid wich is fill with data from a database? Is there a way to do it with action script only or I must do it another way?
Thanks in advance.
What you're looking for is the fl.controls.DataGrid component. There's good example code at that link.
I have a problem. I want to save a XAML state into a file, or something like this. I developed a Silverlight version of PowerPoint, and now i want to save my presentation, but i don't know how...i'm using Silverlight 3 beta(if helps)...
I would like to allow users to upload their photos, music and video file somewhere.....where and how can i do this?
Thanks,
Andrei.
Well, that's a toughy. WPF has the Xaml Writer which can send that state out. Silverlight doesn't :(
What you're doing sounds a lot like Mike Harsh's Silverlight 3 sample. His source is available; Maybe that will provide a suitable approach.
I solved the problem by saving data in XML files. When i want to recreate the state of the app i set all the parameters from my XML file.
I can't find an example of a silverlight 2 tree control that is bound to a database table. I have a table with ID and ParentID columns and I use it to populate a tree control in windows forms. I want to do the same with a silverlight tree control but I can't find any examples on how to do this. Most of the samples have the nodes hard coded. I don't need any advice on how to wcf the data table, I know that part really well. Thanks in advance.
I have not worked with the tree control myself, but I did a quick google, and found the following site Populating Silverlight TreeView from WCF Service with LINQ to SQL
It does however make use of custom classes to store the data and then makes use of LINQ to SQL to extract data from your data tables to manually construct the tree view.
Hope this helps