Jump to content

Adding formatted text into Table question


Kal

Recommended Posts

I have 50 text files which I put into FusionPro as Formatted Text resources. Now I created a rule called "VarText" that will pull in the text based on the data. I want to put this "Rule" into a table, how do I go about it?

 

myTable.Rows[0].Cells[0].Content = "VarFormatted text here";

 

 

new FPTable;

var myTable = new FPTable;

myTable.AddColumns(29600);

myTable.AddRows(1);

myTable.Rows[0].Cells[0].Font="Times New Roman";

myTable.Rows[0].Cells[0].TextColor="Red";

myTable.Rows[0].Cells[0].SetBorders("Thick", "Green", "Right");

myTable.Rows[0].CopyCells(0);

myTable.Rows[0].Cells[0].Content = "VarFormatted text here";

return myTable.MakeTags();

Link to comment
Share on other sites

I had tried that and it didn't pull in the "Formatted Text" from the resource files when it's in the table but if I call the RULE outside the table it works fine... ??????????

What does the Rule "VarText" look like? If it's returning a resource, you'll need to call the .content property.

Link to comment
Share on other sites

Rule snapshot attached.

-------------------------------

new FPTable;

var myTable = new FPTable;

myTable.AddColumns(29600);

myTable.AddRows(1);

myTable.Rows[0].Cells[0].Font="Times New Roman";

myTable.Rows[0].Cells[0].TextColor="Red";

myTable.Rows[0].Cells[0].SetBorders("Thick", "Green", "Right");

myTable.Rows[0].CopyCells(0);

myTable.Rows[0].Cells[0].Content = Rule("ParaPull_RULE");

return myTable.MakeTags();

RuletopullinText.png.54a56919ef19b02071cfcbca4ffca56d.png

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...