Click here to Skip to main content
16,018,202 members

Comments by DannyStaten (Top 13 by date)

DannyStaten 19-Sep-15 10:53am View    
I don't have that solution readily available any more. If I am understanding my old post, I would suspect that it I changed the " simply to the literal single quote. So I am guessing it looks like this:
string connection = String.Format("metadata=res://*/MyData.csdl|res://*/MyData.ssdl|res://*/MyData.msl;provider=System.Data.SQLite;provider connection string='data source={0}'", file);
_data = new MyDataEntities(connection);
DannyStaten 3-Sep-11 9:25am View    
my problem is that what you have suggested here is not working... I did notice at least that it doesn't show the undesired message until the textbox loses focus, so it isn't as critical.
DannyStaten 11-Aug-11 0:54am View    
Thanks, all my google searches found other things that weren't nearly as direct and useful.
DannyStaten 28-Jul-11 22:55pm View    
So I have done that. I even went so far as to directly copy the class that the productivity tool generated and then do very small tweaks to run the code on my generated document.

The end result is a .docx package that is a lot closer the next time I do a comparison of the files, but there are still pretty significant differences, and Open Office still won't open the file.

Some of the differences include:
In app.xml my document has all node names with ap:NodeName (e.g. <ap:temlate>) and the one that opens in Open Office has just the straight up node name.

theme.xml in my document is theme1.xml.
All my documents xml don't have standalone="yes" in the xml document node. File that ran through MS Word have standaloen="yes"

My documents have encoding in lowercase "utf-8" MS Word's file has caps "UTF-8".

Some of the relationships are in different orders in some files.

As I said, it gets the file a lot closer, but there are still things that the code generates that will not play nicely with Office. Seems quite frustrating.
DannyStaten 23-Jul-11 23:19pm View    
Yeah I am familiar with the productivity tool and it had saved me a lot of grief in the past. I hadn't realized it had the tool to compare files. That will definitely get me pointed in the right direction. Thanks