Email Invoice on Sales Order Entry

Find general Jiwa support here.

Email Invoice on Sales Order Entry

Postby JimmySu1402 » Wed Sep 03, 2014 3:32 pm

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");
JimmySu1402
Occasional Contributor
Occasional Contributor
 
Posts: 10
Joined: Wed Sep 03, 2014 12:16 pm

Re: Email Invoice on Sales Order Entry

Postby Mike.Sheen » Thu Sep 04, 2014 11:30 am

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
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755

Re: Email Invoice on Sales Order Entry

Postby JimmySu1402 » Thu Sep 04, 2014 3:44 pm

Hi Mike,

where is the MDI form, can you elaborate?
JimmySu1402
Occasional Contributor
Occasional Contributor
 
Posts: 10
Joined: Wed Sep 03, 2014 12:16 pm

Re: Email Invoice on Sales Order Entry

Postby Mike.Sheen » Thu Sep 04, 2014 3:47 pm

JimmySu1402 wrote:Hi Mike,

where is the MDI form, can you elaborate?


It's the main form:
6MDIParent.PNG
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2440
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 755


Return to Core Product Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron