• Subject: Re: hiding from print-out user-defined props doesn't take effect until OL restarts
  • Author: Ken Slovak
  • Date: 02 Jul 2010
  • References: 1 2 3 4 5 6 7
Outlook printing is pretty pathetic for the most part. Not much change there
since day 1.

Obviously with VB6 code you wouldn't have the managed code problems,
although you can still get caught by unexpected COM references.

I tend to not use VSTO unless I'm only supporting one or two of the latest
versions only. For everything else I use shared addins and reference the
oldest version of Outlook I want to support.

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

"Mark McGinty" <mmcgintyNG@sSpUaCmKSdeprecatethis.com> wrote in message
news:Pr7Xn.6310$RC5.4567@newsfe08.iad...
>

> This is VB6 code, we started the port to .net last month, but had to put
> out some fires. In researching my options for the port (still a little on
> the fence, but leaning more toward shared AddIn than VSTO) I read about
> the reference leak problem with multi-level object references...
> inopportune timing, because to me something like Item.UserProperties.Add()
> is an intuitive construct. Anyway, I'm pretty sure there was at least
> some of it that was affecting my code, I was seeing occasional "can't
> save, do you want to save a copy..." prompts that were confusing,
> especially for inherently read-only items like inbox emails. I resolved
> them, though how much via explicit object resolution I'm uncertain.
>
> Anyway, before I lose sight of it... how does any/all of this have to do
> with Outlook deciding to gray the Print Preview menu, but not the Print
> menu? Clearly the item is printable, why does it care whether it's
> rendering to a display device context (DC) versus a printer DC?
> Previewing should be slightly less complicated than printing, one less
> device dependency. It makes no sense to me.
>
> It's not a big deal, I have PDFMachine, so I don't have to waste any
> paper...
>
> That it doesn't happen with plain-text items would seem to reinforce the
> premise that leaked references shouldn't impact this -- I'm not saying
> they don't, but they damn well shouldn't, rendering for print shouldn't
> care about saved/unsaved/multiple references, it should just read what's
> available and render.
>
> -MM
>
>
>
>
>
>
>> --
>> Ken Slovak
>> [MVP - Outlook]
>> http://www.slovaktech.com
>> Author: Professional Programming Outlook 2007.
>> Reminder Manager, Extended Reminders, Attachment Options.
>> http://www.slovaktech.com/products.htm
>>
>>
>> "Mark McGinty" <mmcgintyNG@sSpUaCmKSdeprecatethis.com> wrote in message
>> news:MDKWn.5545$RC5.5053@newsfe08.iad...
>>>
>>> "Ken Slovak" <kenslovak@mvps.org> wrote in message
>>> news:hvr6n5$m4f$1@news.eternal-september.org...
>>>> If you solve the leak that should go away.
>>>
>>> That doesn't seem to be the case, the condition persists even after
>>> restarting Outlook.
>>>
>>> I've noticed it does not occur with plain-text messages; it does occur
>>> with HTML messages; not sure about WordMail, haven't tested (ditto for
>>> RTF.)
>>>
>>>
>>> -MM
>>
>
>
22 Jun 2010hiding from print-out user-defined props doesn't take effect until OL restarts.Mark McGinty
22 Jun 2010\ Re: hiding from print-out user-defined props doesn't take effect until OL res....Ken Slovak
22 Jun 2010   \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Mark McGinty
22 Jun 2010      \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Ken Slovak
30 Jun 2010         \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Mark McGinty
01 Jul 2010            \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Ken Slovak
01 Jul 2010               \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Mark McGinty
02 Jul 2010                  \ Re: hiding from print-out user-defined props doesn't take effect until OL res....Ken Slovak
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)