0
Thanks for your reply.
But we can't resolve this problem using Hashtable & dictionary object,
The problem with formatting while replacing bookmark value. Alignment is not proper.
I will try to explain the problem...
suppose following are bookmarks in 'example.dot' file
A_B_C_D (bookmark1) R_S_T (bookmark2)
E_F_G_H (bookmark3) P_Q_R (bookmark4)
I_J_K_L (bookmark5) N_O_P (bookmark6)
...........
...........
here is our Hashtable Key/Value
Key Value
102.50 You used service A
85.29 Service is not available is different charge
6.99 Installation charge
0.99 Let fee
Now i am going to replace Left side bookmarks text (1,3,5) with above Hashtable values and right side bookmarks text (2,4,6) with above Hashtable keys.
left side bookmarks text (1,3,5) comes proper way, but right side bookmarks text (2,4,6) alignment not coming properly. sometime its little left & some time little right, & this is because of left side bookmarks text (1,3,5) length.
Can we fixed the bookmarks position in .dot file?
Thnak you,
Prashant

0
If I understand your problem you want to bookmark data by value/key pair ok you can use a hashTable and store each element using DictionaryEntry object it store data (Value/Key) each element. But include System.Collection before
foreach (DictionaryEntry de in yourHashTable)
{
Console.WriteLine("Key = {0}, Value = {1}", de.Key, de.Value);
}