Can't read the PDF file on startup
I have a rather weird issue where the PDF Viewer can't load the file I specify in the code won't load at the program's startup. If I manually open the file, they open normally.
Source Code:
private static readonly string Ci = CultureInfo.InstalledUICulture.ToString();
private static readonly string ReadmeFile = Directory.GetParent(Assembly.GetExecutingAssembly().Location) + "\\ReadMe.pdf";
private static readonly string GreekReadme = Directory.GetParent(Assembly.GetExecutingAssembly().Location) + "\\el\\ReadMe_el.pdf";
private void ReaderWindow_Loaded(object sender, RoutedEventArgs e)
{
//ReaderViewport is the name of the PDFviewer on the XML file.
switch (Ci)
{
case "el-GR":
ReaderViewport.Load(GreekReadme);
break;
default:
ReaderViewport.Load(ReadmeFile);
break;
}
}
Attachment: TestDeck_888c8f77.7z
We are unable to reproduce the issue “PDF documents are not loaded on start up” with the provided sample and the provide PDF document. We have prepared the video illustration for the same. Please find the video link from below.
http://www.syncfusion.com/downloads/support/forum/136109/ze/Video1969961866.zip
We suspect this could be raised when the input document is not available in the specified filepath in the sample. In your sample, you have read the input document from the debug folder. Kindly make sure to include the input files in debug folder of your sample application.
If you still face the same issue, kindly provide the following details to reproduce the issue at our end.
- Operation System:
- .Net Framework:
- Syncfusion Essential Studio Version:
- RAM:
- System Culture Information:
Regards,
Priyanga.E
Attachment: 20180322_152351_d25a207c.7z
A support incident to track the status of the reported issue has been created under your account. Please log on to our support website to check for further updates
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Regards,
Priyanga.E
- 5 Replies
- 3 Participants
-
DI Dimitris
- Feb 25, 2018 10:03 PM UTC
- Mar 23, 2018 07:21 AM UTC