# Perspective Print Issue

**URL:** <https://forum.inductiveautomation.com/t/perspective-print-issue/93695>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [July 24, 2024, 7:05pm UTC](https://forum.inductiveautomation.com/t/perspective-print-issue/93695 "2024-07-24T19:05:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Christopher\_Cooper](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@Christopher\_Cooper](https://forum.inductiveautomation.com/u/Christopher_Cooper)\
**Post date:** [July 24, 2024, 7:05pm UTC](https://forum.inductiveautomation.com/t/perspective-print-issue/93695/1 "2024-07-24T19:05:42Z")

</div>

Interesting error here.  
When I go to print using system.perspective.print()  
This works:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3c68e0b6ab4fa11b141e0a02a81f5c0a20878d0c.png)  
But this does not:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09128131935b3255dfd54ecd112d7159a4bc4016.png)  
Both of these are a script event being executed by a button using "onActionPerformed"  
When I only have one print statement, I get outputs to the browser console, such as this:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/7/d7683a63d747c02bc44dbdb3de0b6ae4e6708329.png)  
But when I add any other print statement, nothing happens, and there are no browser messages at all.

Any idea what is going on?

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 24, 2024, 7:08pm UTC](https://forum.inductiveautomation.com/t/perspective-print-issue/93695/2 "2024-07-24T19:08:23Z")

</div>

Most likely an indentation error. Did you use a tab or spaces on the second line to indent it?

---

<div class="post-metadata">

**Author:** ![Christopher\_Cooper](https://avatars.discourse-cdn.com/v4/letter/c/d6d6ee/32.png) [@Christopher\_Cooper](https://forum.inductiveautomation.com/u/Christopher_Cooper)\
**Post date:** [July 24, 2024, 7:10pm UTC](https://forum.inductiveautomation.com/t/perspective-print-issue/93695/3 "2024-07-24T19:10:26Z")

</div>

Yeah, I just checked that and it turns out that was the issue. Simple mistake, but thanks for helping me find it.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [July 24, 2024, 7:23pm UTC](https://forum.inductiveautomation.com/t/perspective-print-issue/93695/4 "2024-07-24T19:23:23Z")

</div>

![Indentation error](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/9/59aa4212ed92b6c2d506600ee0f23166115e9458.png)

The red squiggle under 's' is the clue.
