개정판 707d6bae
issue #000: 폴더 위치를 configuration으로 변경중
Change-Id: I5e5d1943d83d038acfaf4789e578a615b712078b
FinalService/KCOM_FinalService/MarkupToPDF/MarkupToPDF.cs | ||
---|---|---|
1065 | 1065 |
double Opacity = control.Opac; |
1066 | 1066 |
|
1067 | 1067 |
StringBuilder ApprovedImgPath = new StringBuilder(512); |
1068 |
GetPrivateProfileString("ApprovedImgPath", "URL", "(NONE)", ApprovedImgPath, 512, "C:\\ProgramData\\MARKUS\\settings.ini");
|
|
1068 |
GetPrivateProfileString("ApprovedImgPath", "URL", "(NONE)", ApprovedImgPath, 512, Path.Combine(AppDataFolder, "FinalService.ini"));
|
|
1069 | 1069 |
|
1070 | 1070 |
Controls_PDF.HoneyPDFLib_DrawSet_Symbol.DrawApproval(StartPoint, EndPoint, pointSet, contentByte, _SetColor, Angle, Opacity, ApprovedImgPath.ToString()); |
1071 | 1071 |
} |
... | ... | |
1123 | 1123 |
//File.Move(FinalPDFPath.FullName, @"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1124 | 1124 |
//FinalPDFPath = new FileInfo(@"\\192.168.0.67\finalpdf\" + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1125 | 1125 |
StringBuilder PDFMovePath = new StringBuilder(255); |
1126 |
GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 32, "C:\\ProgramData\\MARKUS\\settings.ini");
|
|
1126 |
GetPrivateProfileString("PDFMovePath", "URL", "(NONE)", PDFMovePath, 32, Path.Combine(AppDataFolder, "FinalService.ini"));
|
|
1127 | 1127 |
File.Move(FinalPDFPath.FullName, PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1128 | 1128 |
FinalPDFPath = new FileInfo(PDFMovePath.ToString() + FinalPDFPath.Name.Replace(".tmp", ".pdf")); |
1129 | 1129 |
|
... | ... | |
1155 | 1155 |
} |
1156 | 1156 |
|
1157 | 1157 |
[DllImport("kernel32")] |
1158 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, |
|
1159 |
int size, string filePath); |
|
1158 |
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath); |
|
1159 |
|
|
1160 |
public static string AppDataFolder |
|
1161 |
{ |
|
1162 |
get |
|
1163 |
{ |
|
1164 |
return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MARKUS"); |
|
1165 |
} |
|
1166 |
} |
|
1160 | 1167 |
|
1161 | 1168 |
#endregion |
1162 | 1169 |
} |
내보내기 Unified diff