@@ -264,14 +264,14 @@ public async Task TestIssue13()
264264 { "sDate" , DateTime . Parse ( "2022-09-08 08:30:00" ) } ,
265265 { "eDate" , DateTime . Parse ( "2022-09-08 15:00:00" ) } ,
266266 { "How" , "Discussion requirement part1" } ,
267- { "Photo" , new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoExpenseMeeting02.png" ) , Width = 160 , Height = 90 } } ,
267+ { "Photo" , new MiniWordPicture ( PathHelper . GetFile ( "DemoExpenseMeeting02.png" ) , 160 , 90 ) } ,
268268 } ,
269269 new Dictionary < string , object >
270270 {
271271 { "sDate" , DateTime . Parse ( "2022-09-09 08:30:00" ) } ,
272272 { "eDate" , DateTime . Parse ( "2022-09-09 17:00:00" ) } ,
273273 { "How" , "Discussion requirement part2 and development" } ,
274- { "Photo" , new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoExpenseMeeting01.png" ) , Width = 160 , Height = 90 } } ,
274+ { "Photo" , new MiniWordPicture ( PathHelper . GetFile ( "DemoExpenseMeeting01.png" ) , 160 , 90 ) } ,
275275 } ,
276276 }
277277 } ;
@@ -300,14 +300,14 @@ public async Task TestIssue13_new()
300300 { "sDate" , DateTime . Parse ( "2022-09-08 08:30:00" ) } ,
301301 { "eDate" , DateTime . Parse ( "2022-09-08 15:00:00" ) } ,
302302 { "How" , "Discussion requirement part1" } ,
303- { "Photo" , new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoExpenseMeeting02.png" ) , Width = 160 , Height = 90 } } ,
303+ { "Photo" , new MiniWordPicture ( PathHelper . GetFile ( "DemoExpenseMeeting02.png" ) , 160 , 90 ) } ,
304304 } ,
305305 new Dictionary < string , object >
306306 {
307307 { "sDate" , DateTime . Parse ( "2022-09-09 08:30:00" ) } ,
308308 { "eDate" , DateTime . Parse ( "2022-09-09 17:00:00" ) } ,
309309 { "How" , "Discussion requirement part2 and development" } ,
310- { "Photo" , new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoExpenseMeeting01.png" ) , Width = 160 , Height = 90 } } ,
310+ { "Photo" , new MiniWordPicture ( PathHelper . GetFile ( "DemoExpenseMeeting01.png" ) , 160 , 90 ) } ,
311311 } ,
312312 }
313313 } ;
@@ -467,7 +467,7 @@ Apple OS Interface Limited | From Jan 2008 to Feb 2010
467467Lorem Ipsum has been the industry's standard dummy text
468468ever since the 1500s, when an unknown printer took.
469469" ,
470- [ "Image" ] = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "demo01.png" ) , Width = 160 , Height = 90 } ,
470+ [ "Image" ] = new MiniWordPicture ( PathHelper . GetFile ( "demo01.png" ) , 160 , 90 ) ,
471471 } ;
472472 await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
473473 //System.Diagnostics.Process.Start("explorer.exe", path);
@@ -514,7 +514,7 @@ Apple OS Interface Limited | From Jan 2008 to Feb 2010
514514 Lorem Ipsum has been the industry's standard dummy text
515515 ever since the 1500s, when an unknown printer took.
516516 " ;
517- value . Image = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "demo01.png" ) , Width = 160 , Height = 90 } ;
517+ value . Image = new MiniWordPicture ( PathHelper . GetFile ( "demo01.png" ) , 160 , 90 ) ;
518518 await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
519519 //System.Diagnostics.Process.Start("explorer.exe", path);
520520 }
@@ -596,7 +596,7 @@ public async Task TestIssue3()
596596 var templatePath = PathHelper . GetFile ( "TestBasicImage.docx" ) ;
597597 var value = new Dictionary < string , object > ( )
598598 {
599- [ "Logo" ] = new MiniWordPicture ( ) { Path = PathHelper . GetFile ( "DemoLogo.png" ) , Width = 180 , Height = 180 }
599+ [ "Logo" ] = new MiniWordPicture ( PathHelper . GetFile ( "DemoLogo.png" ) , 180 , 180 )
600600 } ;
601601 await MiniWord . SaveAsByTemplateAsync ( path , templatePath , value ) ;
602602 var xml = Helpers . GetZipFileContent ( path , "word/document.xml" ) ;
0 commit comments