D
Denis Heliszkowski
Hello All,
I am stuck in a problem since last Wednesday, and I run out of time trying
different things to do what I want.
What I want:
We are currently implementing CRM, and I want to create a quote document and
fill the properties with values from CRM.
What works:
It works like a charm and is the easy part.
I've created a "Document Information Panel" that queries the database, gets
the values for the fields that I want, and updates the properties of the
document. Then the content controls get updated... It's working very well.
What doesn't:
Now I want to bring the detail records from the quote. The problem is that I
don't have a way to update tabular data from the "Document Information
Panel". After some hours of experiences, I ended up with another approach
for this part...
My current solution is to use the ContentControlBeforeUpdate event, and
there re-query the database for the detail records and insert a table with
the correct columns and rows.
Before I started, I thought that it was a simple and inelegant solution but
a working one. Anyway, after all this days of frustration, I don't know what
to do next L
My current problem:
I don't know why, but when I am in this event, there are some things (wich I
don't know what) that I can't do! One of them is simply creating a table and
updating the cells.
My question:
Is there anybody that knows what is happening behind the scenes and can help
me to solve my problem? Or just tell me why can't I change the "#$%&/()= ?
Document ? Or even better point me to another more elegant solution!
I've tried the exactly same code in a macro, and when I call it from the
ALT-F8, it works. But when called from the event, It doesn't
Here is the code that I'm using as an example:
CurrentDocument.Tables.Add Range:=Selection.Range, NumRows:=3,
NumColumns:= 3
Selection.TypeText Text:="1234"
Selection.MoveRight Unit:=wdCell
Thanks is advance,
Denis Heliszkowski
Portugal
I am stuck in a problem since last Wednesday, and I run out of time trying
different things to do what I want.
What I want:
We are currently implementing CRM, and I want to create a quote document and
fill the properties with values from CRM.
What works:
It works like a charm and is the easy part.
I've created a "Document Information Panel" that queries the database, gets
the values for the fields that I want, and updates the properties of the
document. Then the content controls get updated... It's working very well.
What doesn't:
Now I want to bring the detail records from the quote. The problem is that I
don't have a way to update tabular data from the "Document Information
Panel". After some hours of experiences, I ended up with another approach
for this part...
My current solution is to use the ContentControlBeforeUpdate event, and
there re-query the database for the detail records and insert a table with
the correct columns and rows.
Before I started, I thought that it was a simple and inelegant solution but
a working one. Anyway, after all this days of frustration, I don't know what
to do next L
My current problem:
I don't know why, but when I am in this event, there are some things (wich I
don't know what) that I can't do! One of them is simply creating a table and
updating the cells.
My question:
Is there anybody that knows what is happening behind the scenes and can help
me to solve my problem? Or just tell me why can't I change the "#$%&/()= ?
Document ? Or even better point me to another more elegant solution!
I've tried the exactly same code in a macro, and when I call it from the
ALT-F8, it works. But when called from the event, It doesn't
Here is the code that I'm using as an example:
CurrentDocument.Tables.Add Range:=Selection.Range, NumRows:=3,
NumColumns:= 3
Selection.TypeText Text:="1234"
Selection.MoveRight Unit:=wdCell
Thanks is advance,
Denis Heliszkowski
Portugal