Click here to Skip to main content
15,914,943 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: recommendation for high quality .NET extension library Pin
Pete O'Hanlon28-Jul-12 20:35
mvePete O'Hanlon28-Jul-12 20:35 
AnswerRe: recommendation for high quality .NET extension library Pin
Florian Rappl28-Jul-12 23:04
professionalFlorian Rappl28-Jul-12 23:04 
GeneralRe: recommendation for high quality .NET extension library Pin
BillWoodruff29-Jul-12 1:38
professionalBillWoodruff29-Jul-12 1:38 
GeneralRe: recommendation for high quality .NET extension library Pin
BillWoodruff29-Jul-12 2:31
professionalBillWoodruff29-Jul-12 2:31 
GeneralRe: recommendation for high quality .NET extension library Pin
Florian Rappl29-Jul-12 3:10
professionalFlorian Rappl29-Jul-12 3:10 
QuestionExecutenonquery: Connection Property Has Not Been Initialized, VS 2008 Pin
Member 931468428-Jul-12 4:46
Member 931468428-Jul-12 4:46 
GeneralRe: Executenonquery: Connection Property Has Not Been Initialized, VS 2008 Pin
Eddy Vluggen28-Jul-12 7:26
professionalEddy Vluggen28-Jul-12 7:26 
RantOpen XML SDK - Word 2007 Uri Issue Pin
Ed Hill _5_27-Jul-12 1:49
Ed Hill _5_27-Jul-12 1:49 
I've just lost a day and a half of my working life trying to track down a bug which was causing word documents i am changing to include a mail merge source to error when opened in word 2007. The documents work fine in word 2010. After an awful lot of digging, I've tracked the issue down to the URI for the mdb file that is the data source for the merge. My non working in 2007 code was as follows:
C#
using (var docx = WordProcessingDocument.Open(filePath, true))
{
    FileInfo mdbFile = FileHelper.GetResourceFile("Merge.mdb");
    Uri mdbUri = new Uri(mdbFile.FullName, UriKind.Absolute);

    var settings = DocHelper.GetOrCreateSettingsPart(document);

    settings.AddExternalRelationship("http://schemas.openxmlformats.org/officeDocument/2006/relationships/mailMergeSource", mdbUri, id1);
}


After an awful lot of checking i found that the relationship file was recording the uri without a leading "file:///", some more looking into this it appears that the openXML SDK is writing out the OrigionalString. The change i had to make to my code for it to work was as follows:
C#
Uri mdbUri = new Uri("file:///" + mdbFile.FullName, UriKind.Absolute);

I guess my question is, was i doing something wrong when working with the Uri or is this something that the SDK is not getting right. Additionally i really hope it is not a bug that was found, and fixed in Office 2010 by working with the Uri missing the "file:///" prefix insted of changing the SDK to write out Uri.ToString();
Questionwindow service with taskbar notification Pin
madanbhanu26-Jul-12 22:00
madanbhanu26-Jul-12 22:00 
AnswerRe: window service with taskbar notification Pin
Pete O'Hanlon26-Jul-12 22:15
mvePete O'Hanlon26-Jul-12 22:15 
GeneralRe: window service with taskbar notification Pin
madanbhanu27-Jul-12 3:05
madanbhanu27-Jul-12 3:05 
AnswerRe: window service with taskbar notification Pin
Bernhard Hiller26-Jul-12 23:42
Bernhard Hiller26-Jul-12 23:42 
GeneralRe: window service with taskbar notification Pin
madanbhanu27-Jul-12 3:07
madanbhanu27-Jul-12 3:07 
AnswerRe: window service with taskbar notification Pin
Eddy Vluggen27-Jul-12 3:21
professionalEddy Vluggen27-Jul-12 3:21 
QuestionGet path of Files accessed or in use by a process , without using Handle or other tools Pin
MayankNainwal26-Jul-12 1:47
MayankNainwal26-Jul-12 1:47 
QuestionRe: Get path of Files accessed or in use by a process , without using Handle or other tools Pin
Eddy Vluggen26-Jul-12 2:05
professionalEddy Vluggen26-Jul-12 2:05 
AnswerRe: Get path of Files accessed or in use by a process , without using Handle or other tools Pin
Dave Kreskowiak26-Jul-12 3:53
mveDave Kreskowiak26-Jul-12 3:53 
Questionis there an Entity code to database shortcut? Pin
neodeaths23-Jul-12 6:59
neodeaths23-Jul-12 6:59 
AnswerRe: is there an Entity code to database shortcut? Pin
Dave Kreskowiak24-Jul-12 3:51
mveDave Kreskowiak24-Jul-12 3:51 
Questionclass library Pin
nitishvr20-Jul-12 22:38
nitishvr20-Jul-12 22:38 
AnswerRe: class library Pin
Richard MacCutchan21-Jul-12 1:18
mveRichard MacCutchan21-Jul-12 1:18 
AnswerRe: class library Pin
Abhinav S22-Jul-12 20:07
Abhinav S22-Jul-12 20:07 
AnswerRe: class library Pin
_Amy23-Jul-12 1:32
professional_Amy23-Jul-12 1:32 
QuestionExternal "module" acquisition Pin
pablogvivo17-Jul-12 21:27
pablogvivo17-Jul-12 21:27 
AnswerRe: External "module" acquisition Pin
Richard MacCutchan17-Jul-12 21:37
mveRichard MacCutchan17-Jul-12 21:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.