TOPIC: Send HTML email function on PC without outlook

Send HTML email function on PC without outlook 29 Oct 2011 18:35 #896

  • nmiletic
  • nmiletic's Avatar
  • Offline
I have just been trying out the free viewer, and it looks impressive from a first look. I have managed to get it to crash though - by using the Send HTML function on a computer without Outlook installed:

To reproduce:
1. Open report in viewer (free version)
2. Click "Send As HTML email" button in the toolbar

I get "Unhandled exception has occurred in your application. If you click Continue, the application will ignore the error and attempt to continue. If you click Quit, the application will close immediately.

Could note load file or assembly Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, (and a load more details). If I click Details to get the full information I get:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Office.Interop.Outlook, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c'
at Logicity_Desktop.ViewerForm.tsSendAsHTMLEmail_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5448 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
Logicity Desktop
Assembly Version: 1.6.27.0
Win32 Version:
CodeBase: file:///C:/Program%20Files/SaberLogic/Logicity/Logicity%20Desktop.exe
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
Logicity.Common
Assembly Version: 1.6.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///C:/Program%20Files/SaberLogic/Logicity/Logicity.Common.DLL
CrystalDecisions.CrystalReports.Engine
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/12.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
CrystalDecisions.Shared
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.CommLayer/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.ClientDoc/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.DataDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.Controllers/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.CubeDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.ReportDefModel/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
BusinessObjects.Licensing.KeycodeDecoder
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.3.812
CodeBase: file:///C:/Windows/assembly/GAC/BusinessObjects.Licensing.KeycodeDecoder/12.0.1100.0__692fbea5521e1304/BusinessObjects.Licensing.KeycodeDecoder.dll
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
CrystalDecisions.Shared.resources
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Shared.resources/12.0.2000.0_en_692fbea5521e1304/CrystalDecisions.Shared.resources.dll
CrystalDecisions.CrystalReports.Engine.resources
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine.resources/12.0.2000.0_en_692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.resources.dll
CrystalDecisions.Windows.Forms
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
CrystalDecisions.ReportSource
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.ReportSource/12.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
CrystalDecisions.Windows.Forms.resources
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms.resources/12.0.2000.0_en_692fbea5521e1304/CrystalDecisions.Windows.Forms.resources.dll
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
CrystalDecisions.Enterprise.Framework
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.3.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.Framework/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Framework.dll
CrystalDecisions.Enterprise.InfoStore
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.3.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.InfoStore/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.InfoStore.dll
CrystalDecisions.Enterprise.Viewing.ReportSource
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.Enterprise.Viewing.ReportSource/12.0.1100.0__692fbea5521e1304/CrystalDecisions.Enterprise.Viewing.ReportSource.dll
CrystalDecisions.Web
Assembly Version: 12.0.2000.0
Win32 Version: 12.3.2003.812
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/CrystalDecisions.Web/12.0.2000.0__692fbea5521e1304/CrystalDecisions.Web.dll
CrystalDecisions.ReportAppServer.XmlSerialize
Assembly Version: 12.0.1100.0
Win32 Version: 12.3.1103.812
CodeBase: file:///C:/Windows/assembly/GAC/CrystalDecisions.ReportAppServer.XmlSerialize/12.0.1100.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll
FlashControlV71
Assembly Version: 1.0.3187.32366
Win32 Version: 1.0.3187.32366
CodeBase: file:///C:/Windows/assembly/GAC/FlashControlV71/1.0.3187.32366__692fbea5521e1304/FlashControlV71.dll

System is Windows 7 Professional 32 bit; Office 2007 Professional (except Outlook) is installed.

Any thoughts/comments?

John
The administrator has disabled public write access.

Re:Send HTML email function on PC without outlook 31 Oct 2011 12:58 #897

  • aellis
  • aellis's Avatar
John,

Both the 'Send As E-mail' and 'Send As HTML E-mail' from within the Logicity viewer portion are unfortunately Outlook-only features as of now. We obviously need to work on our ability to detect whether or not Outlook is installed to provide users with a more friendly message there. I'll add that to that immediate bug list as we should be able to handle that.

Long term I'd obviously love to integrate other e-mail clients. What client are you attempting to use? We essentially need two different API-level calls for any e-mail client we work with. One is a command line method to fire up a new e-mail and provide it an attachment (the "/a" parameter for Outlook) and the other (more difficult) is a call to fire up a new e-mail and provide HTML body text.

Lastly, there is sort of a work-around here that might be of use depending on what you are trying to do here. If you make a Logicity Solution File with an "E-mail" action with a file type of inline HTML (that is a Pro only feature) that should work regardless of your e-mail client as it communicates directly with the SMTP server.

Thanks for the bug report,
Adam
The administrator has disabled public write access.

Re:Send HTML email function on PC without outlook 02 Nov 2011 14:33 #900

  • nmiletic
  • nmiletic's Avatar
  • Offline
My primary email client at home (where I was testing this) is Yahoo mail (via web browser), but surely if you just use a mailto: hyperlink it should work whatever the preferred email client is set to. At work we use Groupwise and obviously there are many other email clients available.

Probably the simplest way is to just display an "Outlook is not installed on this PC" error message if you can't initialise the libraries.
The administrator has disabled public write access.