Douglas Osborne
05-24-2006, 05:09 PM
I had found some code on MSDN and in Alvin's book for these - but they no
longer seem to work - at least in OWC11.
Is there a workaround?
function init()
{
document.all.pt.PrintCodeBase = "./otphelp.cab";
function onPrint()
{
document.all.pt.Printing.Print();
}
function onPrintPreview()
{
document.all.pt.Printing.PrintPreview();
}
}
TIA,
Doug
Alvin Bruney
05-25-2006, 12:01 AM
what errors are you seeing?
--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]
[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------
"Douglas Osborne" <dougdotosborneatcardionetdotcom> wrote in message
news:exFItx0fGHA.452@TK2MSFTNGP02.phx.gbl...
>I had found some code on MSDN and in Alvin's book for these - but they no
>longer seem to work - at least in OWC11.
>
> Is there a workaround?
>
> function init()
> {
> document.all.pt.PrintCodeBase = "./otphelp.cab";
>
> function onPrint()
> {
> document.all.pt.Printing.Print();
> }
>
> function onPrintPreview()
> {
> document.all.pt.Printing.PrintPreview();
> }
> }
>
> TIA,
> Doug
>
Douglas Osborne
05-25-2006, 03:22 PM
Alvin,
It is a bit weird ( well it is OWC ). If you look at the example from the
Office Component Toolpack under Pivotprint.htm, when you look at the
PivotTable 10 object that is displayed you can see that it has the printer
icon enabled as well as the find icon.
However, if I start a new ASPX page and drag on either a 10.0 or 11.0 Pivot
table, by default the Print and Find buttons are not there in the toolbar.
Then - if I change the CLSID of the example of PrintPivot in 10 to the one
for 11 - 2E55A - the Print and Find icons render in HTML.
So I would ask how do I enable them in code to show up in the .net
environment? Why are they not presented under .Net? ( 1.1 BTW )
TIA,
Doug
"Alvin Bruney" <www.lulu.com/owc> wrote in message
news:%23e636X4fGHA.1264@TK2MSFTNGP05.phx.gbl...
> what errors are you seeing?
>
> --
>
> ________________________
> Warm regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Professional VSTO.NET - Wrox/Wiley
> The O.W.C. Black Book with .NET
> www.lulu.com/owc, Amazon
> Blog: http://www.msmvps.com/blogs/alvin
> -------------------------------------------------------
>
> "Douglas Osborne" <dougdotosborneatcardionetdotcom> wrote in message
> news:exFItx0fGHA.452@TK2MSFTNGP02.phx.gbl...
>>I had found some code on MSDN and in Alvin's book for these - but they no
>>longer seem to work - at least in OWC11.
>>
>> Is there a workaround?
>>
>> function init()
>> {
>> document.all.pt.PrintCodeBase = "./otphelp.cab";
>>
>> function onPrint()
>> {
>> document.all.pt.Printing.Print();
>> }
>>
>> function onPrintPreview()
>> {
>> document.all.pt.Printing.PrintPreview();
>> }
>> }
>>
>> TIA,
>> Doug
>>
>
>
Douglas Osborne
06-15-2006, 03:22 PM
Alvin,
I got the printing button up and running on my pivot table - thanks for your
help.
I tried to extend that to my chart, I got so far as to add the buttons to
the toolbar for the chart, but it does not want to print - is there anything
I specifically need to tweak?
document.all.PivotTable1.Printing.Print(); -- works
document.all.ChartSpace1.Printing.Print(); -- does not work
I can see in PivotPrint.htc they are tied right to Excel - printing = new
ExcelPrinting(); Can I set this to print a chart? if so, does anyone have
an example?
Doug
"Alvin Bruney" <www.lulu.com/owc> wrote in message
news:%23e636X4fGHA.1264@TK2MSFTNGP05.phx.gbl...
> what errors are you seeing?
>
> --
>
> ________________________
> Warm regards,
> Alvin Bruney [MVP ASP.NET]
>
> [Shameless Author plug]
> Professional VSTO.NET - Wrox/Wiley
> The O.W.C. Black Book with .NET
> www.lulu.com/owc, Amazon
> Blog: http://www.msmvps.com/blogs/alvin
> -------------------------------------------------------
>
> "Douglas Osborne" <dougdotosborneatcardionetdotcom> wrote in message
> news:exFItx0fGHA.452@TK2MSFTNGP02.phx.gbl...
>>I had found some code on MSDN and in Alvin's book for these - but they no
>>longer seem to work - at least in OWC11.
>>
>> Is there a workaround?
>>
>> function init()
>> {
>> document.all.pt.PrintCodeBase = "./otphelp.cab";
>>
>> function onPrint()
>> {
>> document.all.pt.Printing.Print();
>> }
>>
>> function onPrintPreview()
>> {
>> document.all.pt.Printing.PrintPreview();
>> }
>> }
>>
>> TIA,
>> Doug
>>
>
>