logo       

Re: [Boston.pm] Win32::OLE Do you want to save changes? popup.: msg#00005

Subject: Re: [Boston.pm] Win32::OLE Do you want to save changes? popup.
On May 2, 2006, at 4:45 PM, Greg London wrote:

> I'm using Win32::OLE to read and write a number of spreadsheets
> from a perl/tk script. When the user clicks a button, I go through
> and write some cells:
>
> my $Excel = Win32::OLE->GetActiveObject('Excel.Application')
>      || Win32::OLE->new('Excel.Application', 'Quit');
>
> [snip]
> $Sheet->Cells($row,$col)->{'Value'} = $value;
>
> $Book->Close;
>
> I end up doing this a couple of times per operation.
> The annoying bit is that I get a popup asking the user
> "Do you want to save changes" yes/no.

Do you save the workbook at any time?  I don't see it in the code you  
posted.  If you do, there is a way to do this (at least I think I  
recall running into this), but off the top of my head, I don't recall  
it.  I think I was able to find it through some kind of Google search  
a few years ago.  It has something to do with a parameter you pass to  
the close call, I think...

HTH,
Ricky


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe