Archive

Posts Tagged ‘office’

Zimbra – Offline Web Office and Collaboration Suite

March 28th, 2007

Zimbra Goes Offline With Zimbra Desktop

The history is once again recurring. Off-line application, then online application, and then "off-line application" again. But rather than circling, this is an evolution in a rising spiral style. When Google online web applications take on Microsoft Office and there is heated discussion about their comparison, this third approach is emerging. Although Google enjoys the buzz of its branding and pricing, web apps still has many limitations like rich UI, performance, security, difficult admin maintenance due to frequent incremental software change, and so on. Off-line ajax solution answered some very important challenges of web apps. For example, the not yet pervasive and stable Internet connection, page latency, and UI responsiveness. This helps narrowing the gap between the web apps and traditional desktop apps.

From server client model’s point of view. The same recurring phenomenon is going on. Single machines, main frame, distributed systems, peer to peer systems, web applications running on central servers, and now off-line web applications. The big difference is the placement of software components and the global computing environments and infrastructure – majorly Internet.

From hierarchical architecture’s point of view, the off-line web application is a more sophisticated caching model which involves not only static data like web pages and cookies but also software components and application states that run independently on the client machine without any help from the mother ship – servers. This has a load of benefits. For example, performance will improve a lot. "Off-line" is not only used when the network connection is off. Software components and state is cached locally and reduced a large portion of the server-client interaction round trips, especially those bulky post backs. Users data are better maintained locally and is immune to page load failure due to temporary connection problems.

Off-line mode is a significant innovation, but most of the rest of the system is more or less copy from Microsoft Office and/or Google Apps. But it’s always like that, new startups who come up with a product, 10% of which are new ideas, are regarded innovative, but the big guys who come up with a similar product are still regarded as copy cats :) The expectations for them are quite different. The world is flattening and so does the computer software industry. These emerging new products are pushing the software moving forward faster.

Web , , , , ,

Publishing blogs from Microsoft Office 2007

February 14th, 2007

Publishing from Microsoft Office to blog sites is attractive because you can make use of the rich editing and formatting functionalities of Word, OneNote, etc. If you have multiple blogs, you could publish to all your blogs from one place conveniently.

Suppose you are working in OneNote and a good idea struck you and you want to blog about it and publish to one of your tech blogs implemented with Movable Type. Compose your blog in a new page in OneNote. "Menu" –> "File" –> "Send To" –> "Blog".

Edit the title, click the "Publish" button on the top left, choose "Register an account" (you only need to do this once and the blog manager will memorize it), choose blog type "Other", choose API "MetaWebLog", type in API URL "http://YOUR-DOMAIN/PATH-TO-MT/mt-xmlrpc.cgi", the user name is your blog account, but the password is NOT the one you use to login Movable Type due to security considerations. To set/get the password, login to your blog website, click your username on the top right corner, and at the bottom of the user information, you will see the "Web Services Password". You can set one that is different from your account password. "OK" and your blog is published.

Tech , , , ,

Create thumbnails of PowerPoint presentations in C#

February 7th, 2007

It’s sometimes useful to generate JPEG thumbnails of office documents programmatically.  With Office object library, it’s very convenient to do this in C#.NET.  If it’s for a quick and dirty task, an easy way is to convert the office document into a webpage and then use a WebBrowser control to generate the thumbnail.  For a more performance oriented task, customized controls subclassed from the Office classes could be written to dump the bitmaps directly into images.  The following is a sample implementation of the first approach.  Don’t forget to add the reference to COM object library "Microsoft PointPoint 12.0 Object Library".

Creating Thumbnails for PowerPoint Presentations
using PowerPoint = Microsoft.Office.Interop.PowerPoint;

private void pptThumbnail(string sourceFile, string targetFile, int thumbW, int thumbH)
{
    // Open the document and convert into HTML pages
    PowerPoint.ApplicationClass oApp = new PowerPoint.ApplicationClass();
    PowerPoint.Presentation oDoc = oApp.Presentations.Open(
        sourceFile,
        Microsoft.Office.Core.MsoTriState.msoTrue, // read only
        Microsoft.Office.Core.MsoTriState.msoTrue, // untitled
        Microsoft.Office.Core.MsoTriState.msoFalse); // with window
    string tmpHtmlFile = System.IO.Path.GetTempFileName() + ".html";
    oApp.Presentations[1].SaveCopyAs(
        tmpHtmlFile,
        PowerPoint.PpSaveAsFileType.ppSaveAsHTML, // format
        Microsoft.Office.Core.MsoTriState.msoTrue); // embed true type font

    // Create the thumbnail from the HTML pages
    Size browserSize = new Size(800, 800);
    WebBrowser browser = new WebBrowser();
    browser.Size = browserSize;
    browser.Navigate(tmpHtmlFile);
    while (WebBrowserReadyState.Complete != browser.ReadyState)
    {
        Application.DoEvents();
    }
    Bitmap bm = new Bitmap(browserSize.Width, browserSize.Height);
    browser.DrawToBitmap(bm,
        new Rectangle(0, 0, browserSize.Width, browserSize.Height));
    Bitmap thumbnail = new Bitmap(thumbW, thumbH);
    Graphics g = Graphics.FromImage(thumbnail);
    g.DrawImage(
        bm,
        new Rectangle(0, 0, thumbnail.Width, thumbnail.Height),
        new Rectangle(0, 0, browserSize.Width, browserSize.Height),
        GraphicsUnit.Pixel);
    thumbnail.Save(targetFile);
}

.NET , , ,

Windows Vista and Office 2007 launch

January 29th, 2007

Live at the Windows Vista launch event – Engadget

One day earlier than promised, the long waited Vista was launched today in NYC. When the kids pushed the big button, all big screens on the Time Square are displaying Vista. Thousands of balloons fell at the same time on the MS campus celebration party. Congratulations! It’s not a easy release.

The new version does improved in lots of areas. No need to repeat. You can see them here 100 reasons. The usability is basicly amazing. For example, in Outlook or Windows, type in a search term. The result come back almost at the same time when you are done typing. If you type multiple terms, it rolls out results on the fly while you are typing. This is the best part I like. Go vista!

Tech , , , , ,