diff options
| author | Ri Xu <xuri.me@gmail.com> | 2017-06-28 17:03:20 +0800 |
|---|---|---|
| committer | Ri Xu <xuri.me@gmail.com> | 2017-06-28 17:03:20 +0800 |
| commit | 66e5d1fa801680f87a647a968fd4965ef9668b9a (patch) | |
| tree | 81ae32157618a3c693b94013f11d45929cc038a8 /picture.go | |
| parent | 555e2ba9a82d6974077681c7ab34ce0fa93d351d (diff) | |
API changed, use `NewFile()` instead of `CreateFile()` and use `SaveAs()` instead of `WriteTo()`.
Diffstat (limited to 'picture.go')
| -rw-r--r-- | picture.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -47,7 +47,7 @@ func parseFormatPictureSet(formatSet string) *formatPicture { // ) // // func main() { -// xlsx := excelize.CreateFile() +// xlsx := excelize.NewFile() // // Insert a picture. // err := xlsx.AddPicture("Sheet1", "A2", "./image1.jpg", "") // if err != nil { @@ -63,7 +63,7 @@ func parseFormatPictureSet(formatSet string) *formatPicture { // if err != nil { // fmt.Println(err) // } -// err = xlsx.WriteTo("./Workbook.xlsx") +// err = xlsx.SaveAs("./Workbook.xlsx") // if err != nil { // fmt.Println(err) // os.Exit(1) |
