Has anyone out there done mailing labels through Silverlight? Anyone maybe have an example?
I have the spatial query workign that is returning results to a datagrid fine...now just need to get them to format in IE or something to print to an Avery type mailing label format...
It is kind of alot. 😄 A good part of that code is data manipulation that is unique to our environment. I create the custom class so this I can format each buffer item the way I like, after I get the data form the query. Are the other ways to do it...likely, but I like this way, it is pretty easy and clean. They buffer items class defines what the datagrid looks like, since it is a List<_bufferItems> that I send to the datagrid - "dgReport.ItemSource = _bufferList".
Does that answer your question?
public class _bufferItems
{
public string Name { get; set; }
public string Address { get; set; }
public string City { get; set; }
public string State { get; set; }
public string Zip { get; set; }
}
I suppose you don't have to create a class just for that, but I did. This way I can make a bufferItems type for a list. It was preference, plus creating the class is not a high cost in memory or code. This way I have a type for my report.