S
stolin
After a 12 hours workday I can’t think at all. I need help with programming
Publisher. First of all I can’t use C# because
Publisher.Table test =
document.Pages[1].Shapes.AddTable(some args) as Table;
test.Rows[1].Cells[1].TextRange.Text = "test";
is not working, “object reference not set to an instance of an objectâ€, and
there is no “with†in C#. But no problem I can use VB.
Is there any easy way to find a shape in the document? I will rather draw a
table in the template and then fill it with data than I will add the same
table programmatically on every page. I haven’t tried to find a shape by its
index. And how do I know the index of a shape?
But if I have to add a table anyway, do I have to format every single cell
or can I just to make the changes for the whole table?
I tried using “FindReplaceâ€. My idea was to have tags in the template such
as “$text$â€. I would just fin the tag and replace it with the real data. But
the next page I add copies the data there the tags have already been
overwritten. The second issue here is performance. If my document grows to be
over 5000 pages it can take long time to search through the document.
Is it possible to find more help except Microsoft’s help files?
Ed Bennett to the rescue? ;-)
Publisher. First of all I can’t use C# because
Publisher.Table test =
document.Pages[1].Shapes.AddTable(some args) as Table;
test.Rows[1].Cells[1].TextRange.Text = "test";
is not working, “object reference not set to an instance of an objectâ€, and
there is no “with†in C#. But no problem I can use VB.
Is there any easy way to find a shape in the document? I will rather draw a
table in the template and then fill it with data than I will add the same
table programmatically on every page. I haven’t tried to find a shape by its
index. And how do I know the index of a shape?
But if I have to add a table anyway, do I have to format every single cell
or can I just to make the changes for the whole table?
I tried using “FindReplaceâ€. My idea was to have tags in the template such
as “$text$â€. I would just fin the tag and replace it with the real data. But
the next page I add copies the data there the tags have already been
overwritten. The second issue here is performance. If my document grows to be
over 5000 pages it can take long time to search through the document.
Is it possible to find more help except Microsoft’s help files?
Ed Bennett to the rescue? ;-)