I am trying to print a ODT document using SharpZipLib. And I am getting the following error -
'LaserMaze.exe' (CLR v4.0.30319: LaserMaze.exe): Loaded 'C:\Users\USER\Desktop\lasermaze\LaserMaze\bin\Release\ICSharpCode.SharpZipLib.dll'. Module was built without symbols.
I have read that changing debug configurations usually helps in these cases. But so far I am unable to find a debug configuration where it works for me.
I am build using a Release configuration for Any CPU. And I have disabled "Just My Code" option also. But still no luck.
Edit - Here are more details for the problem -
public static void PrintScoreCard(Game currentGame) {
string templateFilePath = Path.GetTempFileName().Replace(".tmp", ".odt"); ;
File.WriteAllBytes((string)templateFilePath, Properties.Resources.ScoreCardTemplate);
Odt odt = new Odt(templateFilePath);
Odt.OdtDocFields inputs = odt.Inputs;
string playerNames = "";
foreach (string p in currentGame.team.players) {
playerNames += "\r\n" + p;
}
foreach (string key in inputs.FieldNames)
{
//populate the inputs object.
}
odt.Print();
}
Code of Odt class can be found in the article - https://www.codeproject.com/Articles/24093/Printing-Documents-from-C-using-OpenOffice-Writer
Any leads?