Cannot insert the OpenXmlElement "newChild" because it is part of a tree.
hi,
am getting this error(Cannot insert the OpenXmlElement "newChild" because it is part of a tree.) when i try to give border values to the table.
here is my code,
if
(sValue ==
InsideVerticalBorder insideVBorder =
new
InsideVerticalBorder();
insideVBorder.Val =
new
EnumValue<BorderValues>(BorderValues.None);
tblBorders.AppendChild(insideVBorder);
else
InsideVerticalBorder insideVBorder =
new
InsideVerticalBorder();
insideVBorder.Val =
new
EnumValue<BorderValues>(BorderValues.Single);
tblBorders.AppendChild(insideVBorder);
banupriya
private void FindBookmarksAndReplaceWithTable(OpenXmlElement sliblingElement, string text, string partType, object part, System.Data.DataTable dt, WordprocessingDocument activedoc, string stylename)
Run nRun = new Run();
DocumentFormat.OpenXml.Wordprocessing.Table table = new DocumentFormat.OpenXml.Wordprocessing.Table();
TableProperties props = new TableProperties();
TableBorders tblBorders = new TableBorders();
TopBorder topBorder = new TopBorder();
topBorder.Val = new EnumValue<BorderValues>(BorderValues.Single);
tblBorders.Append(topBorder);
InsideHorizontalBorder insideHBorder = new InsideHorizontalBorder();
insideHBorder.Val = new EnumValue<BorderValues>(BorderValues.Single);
tblBorders.Append(insideHBorder);
TableLook tableLook = new TableLook()
Val = "04A0",
FirstRow = true,
LastRow = false,
FirstColumn = true,
LastColumn = false,
NoHorizontalBand =false,
NoVerticalBand = true
props.Append(tableLook);
int iRowCnt = dt.Rows.Count;
int iColCnt = dt.Columns.Count ;
Paragraph pp = new Paragraph();
DocumentFormat.OpenXml.Wordprocessing.TableStyle tableStyle = new DocumentFormat.OpenXml.Wordprocessing.TableStyle() { Val = "ITIS_RFP_Table" };
props.Append(tableStyle); table.AppendChild<TableProperties>(props);
for (var i = 0; i < iRowCnt + 1; i++)
var tr = new DocumentFormat.OpenXml.Wordprocessing.TableRow();
for (var j = 0; j < iColCnt; j++)
Paragraph para = new Paragraph(); ParagraphProperties prop = new ParagraphProperties();
Run rn = new Run();
Text txt = new Text();
RunProperties rp = new RunProperties();
Bold bld = new Bold();
TableCellProperties tableCellProperties3 = new TableCellProperties();
TableCellWidth tableCellWidth3 = new TableCellWidth() {
Width = "2394", Type = TableWidthUnitValues.Auto
Shading shading3 = new Shading()
Val = ShadingPatternValues.Clear, Color = "grey", Fill = "grey", ThemeFill = ThemeColorValues.Accent1
tableCellProperties3.Append(tableCellWidth3);
TableCellWidth tableCellWidth3 = new TableCellWidth() { Width = "2394", Type = TableWidthUnitValues.Auto };
Shading shading3 = new Shading()
Val = ShadingPatternValues.Clear, Color = "grey", Fill = "grey", ThemeFill = ThemeColorValues.Accent1
tableCellProperties3.Append(tableCellWidth3);
if (i == 0)
sValue = dt.Columns[j].ColumnName.ToString();
if(sValue == "F1" || sValue == "F2" || sValue == "F3" || sValue == "F4"||sValue == "F5")
sValue = "";
} tableCellProperties3.Append(shading3);
Justification justification1 = new Justification()
{ Val = JustificationValues.Center };
prop.Append(justification1);
para.Append(prop);
rp.Append(bld);
rn.Append(rp);
else
sValue = dt.Rows[i - 1][j].ToString();
var tc = new DocumentFormat.OpenXml.Wordprocessing.TableCell();
tc.Append(tableCellProperties3);
txt.Text = sValue.ToString();
rn.Append(txt);
para.Append(rn);
tc.Append(para);
ApplyStyleToParagraph(activedoc, stylename, stylename, para);
tr.Append(tc);
if (sValue == "") {
InsideVerticalBorder insideVBorder = new InsideVerticalBorder();
insideVBorder.Val = new EnumValue<BorderValues>(BorderValues.None);
tblBorders.Append(insideVBorder);
else
InsideVerticalBorder insideVBorder = new InsideVerticalBorder();
insideVBorder.Val =new EnumValue<BorderValues>(BorderValues.Single);tblBorders.Append(insideVBorder);
props.Append(tblBorders);
table.Append(tr);
nRun.Append(table);
pp.Append(nRun);
sliblingElement.InsertBeforeSelf(pp);
yes, i did not post entire code here . but i got errors in this part .if you want full code of that particular function i can put it here for ur testing purpose.
banupriya
Similar Messages
-
I am experiencing issue with my SharePoint site , when I am trying to add new Item in List . Error given below :--> 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 SharePoint Server Logging Correlation Data 9gc5 Verbose Thread change; resetting trace
level override to 0; resetting correlation to e2e9cddc-cf35-4bf8-b4f3-021dc91642da c66c2c17-faaf-4ff9-a414-303aa4b4726b e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.13 w3wp.exe (0x2E04) 0x07E8 Document Management Server Document Management 52od
Medium MetadataNavigationContext Page_InitComplete: No XsltListViewWebPart was found on this page[/sites/00003/Lists/PM%20Project%20Status/NewForm.aspx?RootFolder=&IsDlg=1]. Hiding key filters and downgrading tree functionality to legacy ListViewWebPart(v3)
level for this list. e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015 08:23:36.17 w3wp.exe (0x1B94) 0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Starting correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.17 w3wp.exe (0x1B94)
0x1A0C SharePoint Server Logging Correlation Data 77a3 Verbose Ending correlation. b4d14aec-5bd4-4fb1-b1e3-589ba337b111 02/03/2015 08:23:36.31 w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High System.Data.SqlClient.SqlException: Cannot insert
the value NULL into column 'tp_DocId', table 'Content_SP_00003.dbo.AllUserData'; column does not allow nulls. INSERT fails. The statement has been terminated. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj) at System.Data.SqlClient.SqlDataReader.ConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavi... e2e9cddc-cf35-4bf8-b4f3-021dc91642da 02/03/2015
08:23:36.31* w3wp.exe (0x2E04) 0x07E8 SharePoint Foundation Database 880i High ...or runBehavior, String resetOptionsString) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream,
Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior,
RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior) at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand
command, CommandBehavior behavior,Are you trying to setup P2P? Could you explain the process you followed completely? By anychance you create the backup and then created the publication?
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
I just want to download Firefox 3.6 again
I downloaded Firefox 4 onto my PowerPC G4, 1.67GHz running Mac OSX 10.5.6. When I try to open it I get error message You cannot open the application “Firefox” because it is not supported on this architecture.Use Tony's suggestion. I am running it right now and it is awesome. I love Mozilla but they basically screwed all of those older Macs over. Come on Mozilla. These Macs still work, and there are plenty of people with them out there.
-
Updating ipod touch to os5.1 got an error message "cannot connect the ipod touch because the pairing record is missing" don't know what this means or how to fix but am stuck, only option is to answer ok and close the error box. Any ideas?
#1
- Try another cable. The cable for 5G iPod (lightning connector) seems to be more prone to failure than the older cable.
- If a 5G iPod
Iphone 5 lightning port charging problem - SOLUTION!
- Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
- Make an appointment at the Genius Bar of an Apple store.
Apple Retail Store - Genius Bar
#1.1 n/a because the errror message overrides it
#2 see #1
#3 iOS: Device not recognized in iTunes for Mac OS X
But could be caused by #1
#4 Covered by previous ones
#5 Obvious jpegs are photos and thus will not sync as videos. Also see:
iTunes: May be unable to transfer videos to iPhone, iPad, or iPod
iTunes: Frequently asked questions about viewing and syncing videos
#6 iOS: If you can't back up or restore from a backup in iTunes
First #7 See #6
Second #7 You have so many other problems resolve those first
#8 Resolve other problems first -
I have a new Mac Pro computer and have migrated my files from my older computer to the new computer. In trying to open a Lightroom catalog on an external hard drive I keep on getting the message "lightroom cannot use the catalog named " " because it is not writable and cannot be opened. I have fixed all the "permissions" and yet it will still not open. How do I fix this?
Hello Forum Members,
I figured it out. You have to select the actual logo of the Lightroom catalog and then click on "get info" and allow what ever your new user name to "read and write". That worked!
Henri Silberman -
I cannot authorize my new computer in iTunes because I hit the 5 device limit. However, I cannot deauthorize the old one because it's gone. I also cannot use the deauthorize all computers button because I did last year when I was replacing computers. Is there any other way of deauthorizing computers that no longer exist?
harishassan16 wrote:
... Is there any other way of deauthorizing computers that no longer exist?
If you no longer have, or access to, the computer(s) you want to deauthorise,
Log in to iTunes, go to "view your account info" on the itunes store, deauthorise all five,
(Please Note: this can only be done Once every 12 months)
Then re-authorize your current Computer(s) one at a time..
Authorise / Deauthorise About
http://support.apple.com/kb/HT1420
harishassan16 wrote:
... I also cannot use the deauthorize all computers button because I did last year ...
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I am trying to install Firefox 4 on my Mac OS 10.5.8 and I get the error message "You cannot open the application "Firefox" because it is not supported on this architecture" Help!
Firefox 4 requires at least OS X 10.5 and an Intel Mac. There is a third party version of Firefox 4 that runs on OS X 10.4/10.5 and PPC Macs, for details see http://www.floodgap.com/software/tenfourfox
If you prefer, you can get the latest version of Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html
Mozilla are working to prevent Mac users with non-compatible systems from getting the notification about Firefox 4, and also not displaying the "Download Firefox 4" button on http://www.mozilla.com -
I cannot access the app store because the iPad is requesting a password to an Apple ID that does not exist. The app store seems to be using an @me iCloud address as the Apple ID. This is not my ID or email addresses. How can this be changed to my Apple ID?
Easy, just sign out then back in again.
iOS: Changing the signed-in iTunes Store account
http://support.apple.com/kb/HT1311 -
PowerPivot - SP2013 - Cannot create the service instance because the parent Service does not exist
Unable to setup PowerPivot using PowerPivot configuration tool.
I have One server which has SQL 2012 SP1 and SP2013.
The farm is configured with all service applications.
SQL has default instance with DB Engine and SSAS Tabular. Reporting Services has been configured using SharePoint mode and has a service application.
The Power Pivot instance is set up with DB Engine and the SSAS.
I keep getting this error. Ive tried so many times uninstalling, making sure features removed, rebuilding the farm (thank god for autospinstaller..)
11/07/13 12:06:17:6858 Verbose: CreateSystemServiceInstance.NeedsExecute
11/07/13 12:06:17:6858 Verbose: Running function IsFarmConfigured to check whether SharePoint is configured regardless of availability
11/07/13 12:06:17:6858 Verbose: Farm is configured
11/07/13 12:06:17:6858 Verbose: Entering function GetService(Guid)
11/07/13 12:06:17:6868 Verbose: Service is not installed.
11/07/13 12:06:17:6868 Verbose: Service instance not found in local server.
11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.NeedsExecute(True)
11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute
11/07/13 12:06:17:6868 Verbose: CreateSystemServiceInstance.CanExecute(True)
11/07/13 12:07:41:5662 Verbose: CreateSystemServiceInstance.Execute
11/07/13 12:07:41:5682 Verbose: Entering function GetService(Guid)
11/07/13 12:07:41:5702 Verbose: Service is not installed.
11/07/13 12:07:41:5702 Verbose: CreateSystemServiceInstance.Execute(Skipped)
11/07/13 12:07:41:5702 High: Cannot create the service instance because the parent Service does not exist.
11/07/13 12:07:41:5702 High: Prerequisites check for execution failed. Farm is not in a valid state.Did you install the PowerPivot add-in for SharePoint? There are 2 parts to this - the SQL Server Power Pivot for SharePoint which is the Analysis Services instance running in Tabular Mode and the PowerPivot Add-in. The last line in your error message seems
to tell you that you have a missing component in the farm, possibly the PowerPivot Add-in
Edwin Sarmiento SQL Server MVP | Microsoft Certified Master
Blog |
Twitter | LinkedIn
SQL Server High Availability and Disaster Recover Deep Dive Course -
I cannot cancel the goods issue because the delivery has been archived
Dear Gurus,
I have cancelled the MB1C goods receipt but I cannot cancel the goods issue because the delivery has been archived. Is it possible for you to fix this batch record any other way ?
Early resposne would be appreciated !
Thanks,
RafiqDear Friends,
Can u please help me out of this issue
Thanks,
Rafiq -
I have an email with an attachment that requires a password the open. I can open the file but embedded in the attachment is another attachment. When I double click attachment I get the following error message. Acrobat cannot open the file attachment because your PDF file attachment settings do not allow this file type to be opened.
You would need to make a change to your registry; see http://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/attachments.html
Basically you would need to add the .pdf with the permission 2.
Let us know if you need help with that. Either way, make sure to create a System Restore Point before editing the registry. -
Using SQL Server 2012 SP1
I have a user that is submitting a procedure that uses sp_send_dbmail. I have also noticed that they have the following code in their procedure
DECLARE @rc INT
IF NOT EXISTS (SELECT * FROM msdb.sys.service_queues
WHERE name = N'ExternalMailQueue' AND is_receive_enabled = 1)
EXEC @rc = msdb.dbo.sysmail_start_sp
The user submits the procedure and she gets the email but she also gets the following error message:
Msg 15151, Level 16, State 1, Procedure sysmail_start_sp, Line 8
Cannot alter the queue 'ExternalMailQueue', because it does not exist or you do not have permission.
Mail (Id: 2402) queued.
(1 row(s) affected)
I have granted execute to sp_send_dbmail and sysmail_start_sp. I have also granted select to service_queues.
Does anyone have any solutions for the above error message?
lcerniThe contents of sysmail_start_sp is this:
CREATE PROCEDURE sysmail_start_sp
AS
SET NOCOUNT ON
DECLARE @rc INT
DECLARE @localmessage nvarchar(255)
ALTER QUEUE ExternalMailQueue WITH STATUS = ON
SELECT @rc = @@ERROR
IF(@rc = 0)
BEGIN
ALTER QUEUE ExternalMailQueue WITH ACTIVATION (STATUS = ON);
SET @localmessage = FORMATMESSAGE(14639, SUSER_SNAME())
exec msdb.dbo.sysmail_logmailevent_sp @event_type=1, @description=@localmessage
END
RETURN @rc
The user get the error, because she does not have any permission on the queue in question. To be able to alter the queue, the following applies according to Books Online:
Permission for altering a queue defaults to the owner of the queue, members of the db_ddladmin or db_owner fixed database roles, and members of the sysadmin fixed server role.
Note that is would be db_ddladmin or db_owner in msdb. Now, supposedly the queue is already active, and in that case I think that it is sufficient that the user has VIEW DEFINITION on the view. This would permit her to see the row in sys.service_queues,
why there would be no need to call sysmail_start_sp.
Altertanively, change the check to:
DECLARE @isenabled bit
SELECT @isenabled = (SELECT is_receive_enabled FROM msdb.sys.service_queues
WHERE name = N'ExternalMailQueue')
IF @isenabled = 0
EXEC @rc = msdb.dbo.sysmail_start_sp
The idea here is that, if the user has no permission to read the information in the DMV, @isenabled will be NULL, and you just pray and hope that the queue is up and running.
I suspect that the reason this worked for you on SQL 2005 is that on that instance someone at some point in made all the required configurations for it to work, but all that is forgotten now. That happens to me too.
If you really want the user to be able to start the queue, I have some better ideas than adding her to a role, but I skip the details for now.
Erland Sommarskog, SQL Server MVP, [email protected] -
I have PowerBook G4, running 10.5.8. Went to upgrade and says OS too old. I went back to older version of foxfire. Now I have a circle with a line through it and when I try to open it I get,You cannot open the application “Firefox” because it is not supported on this architecture. Thanks for the help.
Firefox 3.6.x is the last available from Mozilla for PPC Macs. <br />
http://www.mozilla.com/en-US/firefox/all-older.html
For older Macs that aren't supported in Firefox 4+ versions, try TenFourFox for PowerPC's running Mac 10.4.11 & 10.5.8 . <br />
http://www.floodgap.com/software/tenfourfox/<br />
http://tenfourfox.blogspot.com/ <br />
https://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported -
I cannot use the app store because there is a letter missing in the email. How do I change
I cannot use the App Store because the email listed is missing a letter. How do I fix?
When I select an app a pop appears that says an email was sent to the email listed and I must confirm a registration.. That email is not correct it is missing a letter
-
HELP !!! "Cannot modify the user entry because no matching user was found"
I have read all I have found about ISW (identity synchronization for windows).
However I keep bumping into this exact same problem. I am desperate since I cannot seem to
figure out the cause. Can someone please help a very desperate person ??
On the AD side the user test5 resides in an OU called "Admin Users". Even if I add test5 into the windows OU of people it still does not work.
Solaris 10, update 8
Directory Server 6.3.1 (DS)
Identity Manager 8.1.0 (IDM)
System Identity Synchronization for Windows 6.0
MySql 5.1.41 (CE)
/// Warning message
[28/Dec/2009:10:47:18.197 -0500] WARNING 19 CNN101 idmserver "Cannot modify the user entry because no matching user was found, action=Type: MODIFY SUL: SUL1 {Data Attrs: [REPL unicodepwd: ****]} {Other Attrs: cn: test five nsuniqueid: df2cb501-ef1e11de-8029a367-1c30f1b6 objectclass: top, person, organizationalPerson, inetorgperson, account, posixAccount, shadowAccount, machineuser, dspswuser dn: uid=test5,ou=people,dc=host,dc=company,dc=com changenumber: 27323}." (Action ID=CNN100-125D5CFBF36-13600, SN=5)
/// SUL definition
Sun Java System=> Directory source: dc=host,dc=company,dc=com Base DN: dc=host,dc=company,dc=com
Windows => Directory source: host.company.com Base DN: dc=host,dc=company,dc=com
/// unix ldap information
root@idmserver /: ldaplist -l passwd test5
dn: uid=test5,ou=people,dc=host,dc=company,dc=com
givenName: test
sn: five
loginShell: /bin/bash
machinegroup: admin
uidNumber: 1427
gidNumber: 10
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: inetorgperson
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
objectClass: machineuser
objectClass: dspswuser
uid: test5
gecos: test five
cn: test five
homeDirectory: /net/host/vol/vol1/home/test5
userPassword: {crypt}SQDp2i8F9mAyc
// AD windows ldap information
Dn: CN=test five,OU=Admin Users,DC=host,DC=company,DC=com
objectClass: top; person; organizationalPerson; user;
cn: test five;
sn: five;
givenName: test;
distinguishedName: CN=test five,OU=Admin Users,DC=host,DC=company,DC=com;
instanceType: 0x4 = ( IT_WRITE );
whenCreated: 12/28/2009 16:46:55 Eastern Standard Time Eastern Daylight Time;
whenChanged: 12/28/2009 17:29:52 Eastern Standard Time Eastern Daylight Time;
displayName: test five;
uSNCreated: 36921;
memberOf: CN=Domain Admins,CN=Users,DC=host,DC=company,DC=com;
uSNChanged: 36935;
name: test five;
objectGUID: 1210235b-61b4-4fd8-bc4b-7455d1e31554;
userAccountControl: 0x200 = ( UF_NORMAL_ACCOUNT );
badPwdCount: 0;
codePage: 0;
countryCode: 0;
homeDirectory: \\server\profile$\test5\home;
homeDrive: H:;
badPasswordTime: 01/01/1601 00:00:00 UNC ;
lastLogoff: 01/01/1601 00:00:00 UNC ;
lastLogon: 01/01/1601 00:00:00 UNC ;
pwdLastSet: 01/01/1601 00:00:00 UNC ;
primaryGroupID: 513;
profilePath: \\server\profile$\test5\profile;
objectSid: S-1-5-21-2511962931-1144655276-2379676629-1153;
adminCount: 1;
accountExpires: 09/14/30828 02:48:05 UNC ;
logonCount: 0;
sAMAccountName: test5;
sAMAccountType: 805306368;
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=host,DC=company,DC=com;
Edited by: mightbe on Dec 30, 2009 8:22 AMHi,
This might be a stupid question but what happens when you perform a recon against AD? Once complete does the index list the account as confirmed, unknown etc?
Ant.
Maybe you are looking for
-
Transfer of messages in workflow from one employee to another
Hi, There are around 2300 items lying in SAP workflow of an employee. We need to transfer all these items to workflow bucket of another employee. We have allreday made set up such that in future all items will go to desired employee's workflow. Howev
-
Mapping enter and esc to ok and cancel buttons
Hi, Does java's fine API offer any method of mapping Enter and ESC to OK and Cancel buttons in a customized JDialog? The current way I'm doing it is through a brute force of adding a KeyListener to every component in the dialog box (in an automated w
-
Notation Problems with Logic Express 8
Hello there, I´m a new member here and have a question about a notation problem with Express 8. When I´m trying to double measure bars (is this correct? In german we call them "Doppelstriche". They are to divide one part from another... hope anyone u
-
Can I stop Apple from sending me an email every time I locate my device using Findmyiphone?
Apple sends me an email notification every time someone locates my iphone. Can I stop these emails?
-
Hi all.. I just bought the C3 and I got connected to my wlan connection. I can use my facebook and through it I can go @ youtube, etc.. but when I open the mini opera, it can't browse nothing. it says ''Verification of server certificate failed. Ple