Page 1 of 1

Email Invoice on Sales Order Entry

PostPosted: Wed Sep 03, 2014 3:32 pm
by JimmySu1402
Hi Mike

I have a client on 6.5.13, who have just moved to a Terminal server on Window 2012 and using Outlook 2010.
They have run into issue with the stability of emailing their invoice out to their customer.

After the email button is clicked, we can see Crystal Report printing screen quickly pops up and disappear and the next things they get is a JIwa pop up box saying.


This action cannot be completed because the other application is busy. Choose 'Switch to' to activate the busy application and correct the problem.


Once you click on Switch To button, you get

Error: ActiveX Component can't create object
Module: clsmailMessage.SendUsingOutLook

Their IT support company create a jscript (see below) to test the issue. This should open a new test email and display it to you…
it’s worked fine during testing, which Jiwa still cannot email out, which initially would suggest the problem is in Jiwa rather than the Operating System/Environment.
They have done this script in jscript and Windows Scripting Host, but I think the process is much the same… The script they have written is below. I hope this helps.


/* Define Outlook constant for Mail Item */
var olMailItem = 0;

/* Create the Outlook Mail Item */
Outlook = new ActiveXObject("Outlook.Application"); // I believe this is the line/action Jiwa is tripping up on
MailItem = Outlook.CreateItem(olMailItem);

/* Setup and show the Mail Item */
MailItem.to = "[email protected]";
MailItem.Subject = "A test email";
MailItem.Body = "Some text to fill out the email.\n\nJason.\n";
MailItem.Display();

WScript.Echo("Done");

Re: Email Invoice on Sales Order Entry

PostPosted: Thu Sep 04, 2014 11:30 am
by Mike.Sheen
Hi Jimmy,

Can you try adding this to the LoginCompleted breakout of the MDI form, and see if that helps:

Code: Select all
App.OleRequestPendingTimeout = 0


Mike

Re: Email Invoice on Sales Order Entry

PostPosted: Thu Sep 04, 2014 3:44 pm
by JimmySu1402
Hi Mike,

where is the MDI form, can you elaborate?

Re: Email Invoice on Sales Order Entry

PostPosted: Thu Sep 04, 2014 3:47 pm
by Mike.Sheen
JimmySu1402 wrote:Hi Mike,

where is the MDI form, can you elaborate?


It's the main form:
6MDIParent.PNG