mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-02-28 01:00:17 +08:00
COM is really a nightmare... Use managed solution (SharpCompress) instead
This commit is contained in:
@@ -31,12 +31,12 @@ namespace QuickLook.Plugin.OfficeViewer
|
||||
return false;
|
||||
}
|
||||
|
||||
public void BoundViewSize(string path, ViewerObject context)
|
||||
public void BoundViewSize(string path, ContextObject context)
|
||||
{
|
||||
context.SetPreferredSizeFit(new Size {Width = 800, Height = 600}, 0.8);
|
||||
}
|
||||
|
||||
public void View(string path, ViewerObject context)
|
||||
public void View(string path, ContextObject context)
|
||||
{
|
||||
using (var officeApp = new OfficeInteropWrapper(path))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user