The poster asked if it was possible for his customers to view access reports
on the web. As I only use Perl for the CGI I was referring to the
Win32::OLE perl module.
And as you asked, here is the perl code to view access reports on the web:
### START PERL CODE ###
#!/usr/local/bin/perl
use Win32::OLE;
use Win32::OLE::Const 'Microsoft Access';
print "Content-type: text/html\n\n";
# Export Access Report to HTML File or Browser
my $access = Win32::OLE->GetObject("I:\\pathto\\database.mdb", sub
{$_[0]->Quit;}) or die "Error: connecting to Access";
$access->{Visible}=0;
$access->{docmd}->OutputTo(acOutputReport, "ReportName", acFormatHTML,
"I:\\pathto\\report.htm",1);
#$access->Quit;
undef $access;
### END PERL CODE ###
You could even embed the Microsoft snapview.ocx report viewer ActiveX
Control into your webpages.
Follow this link for info:
http://support.microsoft.com/kb/q209145
Carl.
"Tom" <notmy@email.net> wrote in message
news:1ONle.9065$uR4.8681@newsread2.news.atl.earthl ink.net...[color=blue]
> Carl,
>
> Could you give an example of how to use OLE to execute reports.
>
> Thanks.
>
>
> "Carl" <mail2carl@_remove_yahoo.com> wrote in message
> news:1yMle.7700$RG2.2462@newsfe6-gui.ntli.net...[color=green]
>> In Reply to your question 2.
>>
>> The Database Queries can still be executed and using OLE you may
>> still execute the Reports. Forms would not be accessible, unless
>> there is some 3rd party software module available.
>>
>>
>> <billmiami2@netscape.net> wrote in message
>> news:1117148416.381383.53740@g14g2000cwa.googlegro ups.com...[color=darkred]
>> > Some additions to Bob's excellent response:
>> >
>> > 2. Your queries can and should be used by your web interface as they
>> > are part of Jet (the database portion of your Access "database"). If
>> > your queries use custom functions that you have in code, then those
>> > functions will be used too.
>> >
>> > 3. The tables should be the same whether you access them from your
>> > Access interface or your web interface. There is no need to change
>> > them to make them more accessible from the web interface. The only
>> > caveat is that because your users on the web will be querying the
>> > tables differently, you made need additional indexing on some tables.
>> > Access should take care of this for you automatically as you create the
>> > reporting queries.
>> >
>> > You would be much better off to have the web server on your network
>> > rather than use a 3rd party host as Bob mentioned. However, if you
>> > must use a 3rd party host, you can build your web interface so that it
>> > handles reporting and data viewing/input (forms). In this way, you
>> > wouldn't need an Access interface and you wouldn't need periodic
>> > uploads. If you feel that you must go with the Access UI/DB in the
>> > office and then upload it to the 3rd party web server, then you should
>> > simply copy the entire MDB file--there's no need to strip out parts of
>> > it.
>> >
>> > Bill E.
>> > Hollywood, FL
>> >[/color]
>>
>>[/color]
>
>[/color]