Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/617b42a6ec6d26ee5ccf to your computer and use it in GitHub Desktop.
Save bjoerntx/617b42a6ec6d26ee5ccf to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace TXEntityFrameworkSample
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
protected override void OnLoad(EventArgs e)
{
base.OnLoad(e);
ProductContext _context = new ProductContext();
textControl1.Load("template.tx", TXTextControl.StreamType.InternalUnicodeFormat);
mailMerge1.MergeObjects(_context.Products);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment