web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

iframe window.print problems

(0) ShareShare
ReportReport
Posted on by 1,085

Hi,

Before I make a support case to MS, I figured id ask here to see if anyone has had these issues before - googling tells me that a similar issue existed in crm 4.

 

We use crm 2011, Rollup 11, on premise.

we have an iframe on the account page, which shows live data directly from our ERP system, one of the buttons on that iframe calls the javascript command window.print.

Obviously, going to this link outside of crm works perfectly, and the print window comes up and prints the document as it should.

however, clicking the link within the iframe causes errors (quite often the "script error" window is blank and IE is completely crashed).

when the script errors do showup, simply ignoring all 33 of them will allow the page to print as it should.

our iframe already has cross scripting enabled.

Here is the list of errors according to IE's debugger

SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5009: 'CrmEncodeDecode' is undefined
select.htc, line 30 character 462
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5007: The value of the property 'attachWindowOnBeforeUnload' is null or undefined, not a Function object
input.text.eml.htc, line 18 character 180
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
select.picklist.htc, line 25 character 86
SCRIPT5009: 'Mscrm' is undefined
input.num.htc, line 19 character 2697
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5009: 'CrmEncodeDecode' is undefined
notectrl.htc, line 12 character 771

SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5009: 'CrmEncodeDecode' is undefined
select.htc, line 30 character 462
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object
img.lu.htc, line 74 character 24279
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object  
img.lu.htc, line 74 character 24279
SCRIPT5007: The value of the property 'attachWindowOnBeforeUnload' is null or undefined, not a Function object

input.text.eml.htc, line 18 character 180
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

select.picklist.htc, line 25 character 86
SCRIPT5009: 'Mscrm' is undefined

input.num.htc, line 19 character 2697
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5009: 'CrmEncodeDecode' is undefined

notectrl.htc, line 12 character 771
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705
SCRIPT5007: The value of the property 'IsNull' is null or undefined, not a Function object

table.dtm.htc, line 27 character 705

 

Any ideas?

Thanks,

Mark

 

 

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans