-mhd
2012-09-02 20:34:22 UTC
I have written an Outlook addin that uses ComDlg32.OCX to pop the Font dialog.
A few (very few) users report that when they click the button to pop the font
dialog all they see is a flicker or flash indicating something happened but no
dialog is presented. It seems they are all Win 7 users and I believe mostly
using Outlook version 2010.
I had been using the API method sample code from Randy Birch's
http://vbnet.mvps.org/ when I initially got the bug reports and decided to
switch to the common dialog ocx in case I wasn't implementing the API method
properly. Same result - same people with the original problem.
Using ComDlg32 Version 6.01.9816
'get hDC
Printer.Print
With CommonDialog1
.hDC = Printer.hDC
.flags = cdlCFBoth Or cdlCFEffects
.CancelError = True
.ShowFont
End With
Printer.KillDoc
If Err = cdlCancel Then Exit Sub
With CommonDialog1
AddrText.FontName = .FontName
AddrText.FontSize = .FontSize
and so on...
In my Inno script I install the file using the following (ignore the linebreak)
Source: c:\vbfiles\sp6\ComDlg32.OCX; DestDir: {sys}; Flags: restartreplace
sharedfile regserver
Any ideas?
Thanks -mike
A few (very few) users report that when they click the button to pop the font
dialog all they see is a flicker or flash indicating something happened but no
dialog is presented. It seems they are all Win 7 users and I believe mostly
using Outlook version 2010.
I had been using the API method sample code from Randy Birch's
http://vbnet.mvps.org/ when I initially got the bug reports and decided to
switch to the common dialog ocx in case I wasn't implementing the API method
properly. Same result - same people with the original problem.
Using ComDlg32 Version 6.01.9816
'get hDC
Printer.Print
With CommonDialog1
.hDC = Printer.hDC
.flags = cdlCFBoth Or cdlCFEffects
.CancelError = True
.ShowFont
End With
Printer.KillDoc
If Err = cdlCancel Then Exit Sub
With CommonDialog1
AddrText.FontName = .FontName
AddrText.FontSize = .FontSize
and so on...
In my Inno script I install the file using the following (ignore the linebreak)
Source: c:\vbfiles\sp6\ComDlg32.OCX; DestDir: {sys}; Flags: restartreplace
sharedfile regserver
Any ideas?
Thanks -mike