Jump to content
Developer Wiki and Function Reference Links ×

Spreadsheets by Script


Recommended Posts

You just fill up the sheet with the fields of the file I want to get Soloi sub total field type. I think I found the solution. I enclose a piece of script tell me if it is right

SetWSCellTextFormat (tempHandle, 3,1,3,1, ID_font, 9.0);

SetWSCellNumberFormat (tempHandle, 3,1,3,1,1,0,'','');

SetWSCellBorder (tempHandle, 3,1,3,1, TRUE, TRUE, TRUE, TRUE, FALSE);

SetWSCellFormula (tempHandle, 3,1,3,1, '= ('' hardware''.'' Type'')');

SetWSCellTextFormat (tempHandle, 3,2,3,2, ID_font, 9.0);

SetWSCellNumberFormat (tempHandle, 3,2,3,2,2,0,'','');

SetWSCellBorder (tempHandle, 3,2,3,2, TRUE, TRUE, TRUE, TRUE, FALSE);

SetWSCellFormula (tempHandle, 3,2,3,2, '= ('' hardware''.'''' Pieces Total)');

SetWSColumnOperators (tempHandle, 3, -1,0,0,1,0,0); {ordino the first column and condeso data by type}

Hello

? thanks Piero

Link to comment

From what I understand, your script makes a database row, adds the titles and borders and sorts the databaserow according to the chosen columns.

Do you get any errors ?

SetWSColumnOperators is the right function to sort your columns. Just make sure ROW 3 IS a database row, and that it has CRITERIA to find all it's sub elements

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...