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;
            }
        }


5 Replies

NK Navaneetha Kannan Sudalai Muthu Syncfusion Team February 26, 2018 02:14 PM UTC

Hi Dimitris,  

We are not able to reproduce the issue “PDF documents are not loaded on start up”. We have attached a simple sample with which we tried to reproduce the issue in the link below.  


We have tried with two simple PDF documents and the documents are loaded on application start up. Please modify this sample or provide us with a simple sample with which the issue could be reproduced. Also, kindly provide the PDF documents and let us know your Essential Studio version. That way we will be able to understand your problem and provide a better solution.  

Best, 
Navaneetha Kannan   



DI Dimitris March 21, 2018 05:36 PM UTC

Unfortunately, I wasn't able to use the sample you sent me. So, I've uploaded the code of the PDF reader program and the materials to test it. Just make sure to include the manual files in.

Attachment: TestDeck_888c8f77.7z


PE Priyanga Elangovan Syncfusion Team March 22, 2018 12:32 PM UTC

Hi Dimitris,

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
 



DI Dimitris March 22, 2018 01:34 PM UTC

Hmm... Pretty weird. Doing a bit of lookout, it seems to me that there is a glitch when it tried to render the PDF document. I've attached a video that shows this.

Attachment: 20180322_152351_d25a207c.7z


PE Priyanga Elangovan Syncfusion Team March 23, 2018 07:21 AM UTC

Hi Dimitris,

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
 


Loader.
Up arrow icon