This works (with image set as embedded resource):
var assembly = Assembly.GetExecutingAssembly();
Stream imageStream = assembly.GetManifestResourceStream("Application.Images.Logo.png");
args.ImageStream = imageStream;
WPicture picture = args.Picture;
picture.Height = 32;
picture.Width = 124;
This does not(the image does not show):
var picker = new FileOpenPicker();
picker.ViewMode = PickerViewMode.Thumbnail;
picker.SuggestedStartLocation = PickerLocationId.PicturesLibrary;
picker.FileTypeFilter.Add(".jpg");
StorageFile file = await picker.PickSingleFileAsync();
var imageStream = await file.OpenStreamForReadAsync();
args.ImageStream = imageStream;
WPicture picture = args.Picture;
picture.Height = 32;
picture.Width = 64;
Can you please provide a sample where I can mail merge an image that is not part of the assembly into a word document. Thank you in advance
Mike