Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 1175 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted (edited)

In Scribe we can read the Excel cell's background colour. Can we 'Write' the colour to format a cell?

Edited by amallison
  • 4 weeks later...
Posted

Hello,

It is possible to change the background color of a cell. To format the background color of a cell, you need to specify three arguments in the ScribeDocWriteValue call:
1st: cell name
2nd: color
3rd: "background=true"

To change the background color of cell H4 to green, you would call ScribeDocWriteValue( "H4" ; "green" ; "background=true").

  • 8 months later...
  • Newbies
Posted

How does this work with the new script step? The docs for scribe all show the syntax above, but the script step will not accept semi-colons in the "Value" section of the script.

scribe error.png

Posted

Hello,

You will not be able to pass in additional key-value pair parameters into ScribeDocWriteValue as a script step. If you want to pass in more parameters, please use ScribeDocWriteValue as a function instead.

  • 4 months later...
Posted

Hi Sean,

 

How do I do this : "use ScribeDocWriteValue as a function instead" ?

 

thanks

 

Posted

Hello,

In FileMaker, you can use functions where you can specify a Calculation. Typically, users implement the function in a Set Variable script step so that they can trap for errors during scripting---our functions will return 1 on success and "ERROR" if the call fails---or for retrieving information like file paths, depending on what the function is designed to do.

By calling the plug-in function instead of the script step, you will be able to add additional arguments to the function call. For example, you can call ScribeDocWriteValue() with a list of arguments to write an image to a file at a specific position and with specific dimensions. If you wanted to write an image stored in container field MyTable::MyImage to the first slide of a loaded powerpoint file at coordinates (100,200), set the image width to 300px and the height to 400px, you would call ScribeDocWriteValue inside of a Set Variable script step as follows:

Set Variable [ $result ; ScribeDocWriteValue("1"; MyTable::MyImage;"x=100";"y=200";"width=300";"height=400") ]

If the call is successful, variable $result will have value 1. 

Let me know if you have other questions.

Posted

Hi Sean,

Thank you for that. It works, but I'm having an issue.

If I try to change the background color of a cell that contains a value, I get a Java Null Pointer Exception Error

image.png.fe0b7bb684dac06fd09337784d9e6244.png

It works fine if the target Excel cell is empty.

It also works fine in your demo file - I can change the background color of any cell no problem.

image.png.061b8c6f6cf9102316e6e339759e9b19.png

See below image - B17 is OK because it's empty, C17 is not.

image.png.a15bf2b733d85d0e65d95d976f9c210c.png

Any idea what might be causing this ?

thanks

david

 

 

Posted

Hi David,

Could you please download and install the latest store build of Scribe to see if that resolves that behavior. I reviewed previous support tickets, and we resolved a similar issue recently where processing Excel and Word documents produced a NullPointerException. This version of Scribe is 4.0726, and can be downloaded from our webstore by going to the link below and clicking "Download current version".

https://360works.com/filemaker-pdf-plugin/

If you are running the latest build of Scribe and are producing that NullPointerException, could you please locate the plug-in log file and email it to [email protected] along with instructions on how you produced that error? You can reference our documentation at the link below to locate the plug-in log file.

http://docs.360works.com/index.php/Where_to_find_logs

If you have other questions, please email them to [email protected] and we can reply to you more promptly through our ticketing service.

  • 4 weeks later...

This topic is 1175 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.