Guest User

Untitled

a guest
Nov 19th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. string AppDirectory = AppDomain.CurrentDomain.BaseDirectory;
  2. Range oRange = (Range)ar.Cells[2, 1];
  3. float Left = (float)((double)oRange.Left);
  4. float Top = (float)((double)oRange.Top);
  5. const float ImageSize = 32;
  6. ar.Shapes.AddPicture(AppDirectory + "ReportIcon" + "\Bedab-Logo-Blue", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoCTrue, Left, Top, (float)1.41, (float)0.4);
  7. oRange.RowHeight = ImageSize + 2;
  8.  
  9. ar.Shapes.AddPicture(AppDirectory + "ReportIcon" + "\Bedab-Logo-Blue", Microsoft.Office.Core.MsoTriState.msoFalse, Microsoft.Office.Core.MsoTriState.msoCTrue, Left, Top, (float)1.41, (float)0.4);
  10.  
  11. ar.Shapes.AddPicture(AppDirectory + "ReportIcon" + "\Bedab-Logo-Blue.JPG",
  12. Microsoft.Office.Core.MsoTriState.msoFalse,
  13. Microsoft.Office.Core.MsoTriState.msoCTrue, Left, Top, (float)1.41, (float)0.4);
Add Comment
Please, Sign In to add comment