Ejemplo n.º 1
0
 private void insertPic(string tqcode, ExcelAccess ea, int left, int top, int width, int height) {
     Bitmap map = GisHelper.GetDytqMap(tqcode, 700, 600);
     if (map != null) {
         string filename = Path.GetTempFileName() + ".png";
         map.Save(filename);
         ea.InsertPicture(filename, top, left, height, width);
         try {
             File.Delete(filename);
         } catch { }
     }
 }