Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
I am reading large word documents to create c# source files and need to use
the texture of a cell to separate the data I need. Without the sleep command the cell shading texture is not always returns correctly. Is there a better (correct) way to handle this? if (identifier.StartsWith("Record Identifier")) { if (table.Cell(1, 1).Shading.Texture != WdTextureIndex.wdTexture15Percent) { System.Threading.Thread.Sleep(1000); } if (table.Cell(1, 1).Shading.Texture == WdTextureIndex.wdTexture15Percent) { ProcessTable(table); } } |
#2
![]()
Posted to microsoft.public.word.tables
|
|||
|
|||
![]()
Hi Brett
Brett Shearer wrote: I am reading large word documents to create c# source files and need to use the texture of a cell to separate the data I need. Without the sleep command the cell shading texture is not always returns correctly. Is there a better (correct) way to handle this? if (identifier.StartsWith("Record Identifier")) { if (table.Cell(1, 1).Shading.Texture != WdTextureIndex.wdTexture15Percent) { System.Threading.Thread.Sleep(1000); } if (table.Cell(1, 1).Shading.Texture == WdTextureIndex.wdTexture15Percent) { ProcessTable(table); } } Since you haven't received an answer so far, and if you're still looking for a solution, I'd try one of the .vba newsgroups (if you ask nicely whether such timing troubles are known when using VBA, they might be able to help you). HTH Robert |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can I preserve the line returns when saving as xml data? | Microsoft Word Help | |||
Mail merge returns "0" where I want data instead | Mailmerge | |||
Cannot find datasource | Microsoft Word Help | |||
Incorrect data being merged | Mailmerge | |||
Specific Email Merge w/ Specific Attachements | Mailmerge |