Link to home
Start Free TrialLog in
Avatar of jplan
jplan

asked on

Printing the Contact with Photo

I followed the above procedure and it worked perfectly. My question is how do you get the iframe or photo to print? When I click on the "Print" button it gives me a preview, which I can see the photo there, but when it prints, the whole iframe and photo are missing from the print.

Thanks,
jplan
Avatar of WilyGuy
WilyGuy
Flag of United States of America image

Because the IFrame content isn't technically "part of" the CRM web page, CRM doesn't render it.
Oh, hang on, you don't SEE the IFrame (or a box) and you DO see content in the preview?
Every Tab has a Section, does your IFrame Section have a label? (does the Label Print?)
Every IFrame has properties as well, does yours have a Border? (does that print?) What about a Label there?
If you control the ASPX page that you are calling, you could insert something like:

<a href="#" onClick="print(); return false;">click here to print this page</a>

which should allow you to print THAT page independently of the rest.
Avatar of jplan
jplan

ASKER

Sorry for the delay.
I can see the border and the vertical scroll bar and the photo. What I have attached is what I see when I click the print button when I am in the Contact.
The Border is selected to show in the iframe properties.
I see your solution above, is that so I can test out the printing of the photo in the contact sheet? I really need to be able to print the whole thing at once because the user is more of a high level user. Do you need to see the code for the aspx pages?
Thanks for your help on this.

Contact-with-Photo.JPG
Avatar of jplan

ASKER

Correction on above, this is what I see when I click on the print button, the first attachment is what I see when it is printed on paper.
Contact-with-Photo-printpreview.jpg
Right.  So the Iframe isn't really "content" of CRM only the URL is.  So the CRM print can't print that iframe.

The workaround is about the best you'll do (if you CTL-N on the Print Preview, find the print file it is calling, you'll see that you can't really edit that page).
Basically the only other way is to perhaps hi-jack the "Print" button on the Print Preview to call the other print function, but it would still be a separate job and at the end.
Avatar of jplan

ASKER


Ok.
When you say other print function, do you mean the one as described above?
Also being green at coding, where could I find out how to "hijack" the print preview button?
ASKER CERTIFIED SOLUTION
Avatar of WilyGuy
WilyGuy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jplan

ASKER

Did a fine job of answering the question and coming up with a solution, unfortunately there is not an exact solution at this time - only MS will be able to fix this one.