How can export an NSImage in excel Sheet?
When i try doing the below, The Microsoft Excel Application is unable to read the content.
NSBitmapImageRep *imageRep = [self.displayView bitmapImageRepForCachingDisplayInRect:[self.displayView bounds]];
[imageRep setSize:self.displayView.frame.size];
[self.displayView cacheDisplayInRect:[self.displayView bounds] toBitmapImageRep:imageRep];
NSImage *image1 = [[NSImage alloc] initWithSize:NSMakeSize(imageRep.pixelsWide, imageRep.pixelsHigh)];
[image1 addRepresentation:imageRep];
[[image1 TIFFRepresentation]
writeToFile:@"AbsolutePath/ExportImageTest.xlsx"atomically:YES];
Can any one Suggest me how can i export a view converted to NSImage in excel sheet?