all contents are missing..

17 views
Skip to first unread message

Ralf Ashley Kang

unread,
Dec 6, 2016, 3:04:10 PM12/6/16
to PDFTron PDFNet SDK


Hello there.
Left side Picture is  TEST_PC_A.
Right side Picture is TEST_PC_B.

But, the Problem is all contents missing on TEST_PC_A.
Could you tell me why contents are missing?




Here is Code :
using pdftron.PDF;
using System;
using System.Windows.Forms;
 
namespace AsposePDF_Viewer_Test
{
	public partial class Form1 : Form
	{
		private PDFViewCtrl PDFview;
 
		public Form1()
		{
			InitializeComponent();
 
			PDFview = new PDFViewCtrl();
			PDFview.ShowToolbar(true);
			PDFview.ShowNavPanel(true);
			PDFview.ShowDialogs(true);
			PDFview.ShowMenuBar(true);
			PDFview.ShowNavToolbar(true);
			PDFview.ShowStatusBar(true);
 
			PDFview.Dock = DockStyle.Fill;
			pnlView.Controls.Add(PDFview);
		}
 
		private void button1_Click(object sender, EventArgs e)
		{
			OpenFileDialog opnFileDlg = new OpenFileDialog();
			opnFileDlg.Title = "설계파일 열기";
 
			if (opnFileDlg.ShowDialog() == DialogResult.OK)
			{
				string[] filelist = opnFileDlg.FileNames;
				OpenPDFView(filelist[0]);
			}
		}
 
		public void OpenPDFView(string filename)
		{
			try
			{
				PDFDoc pdfdoc = PDFview.GetDoc();
 
				PDFview.CloseDoc();
				if (pdfdoc != null) { pdfdoc.Dispose(); }
 
				pdfdoc = new PDFDoc(filename);
				PDFview.SetDoc(pdfdoc);
				textBox1.Text = "정상작동";
			}
			catch (Exception ex)
			{
				textBox1.Text = ex.ToString();
			}
		}
	}
}

test.png

Ryan

unread,
Dec 7, 2016, 7:02:40 PM12/7/16
to PDFTron PDFNet SDK
Does this happen with any document, or just this one?
What version of PDFNet?
Can you reproduce using our SDK sample, or does it only occur in your project?

If you check our SDK sample, there are resource files external to PDFNet.dll, that you are probably missing. So please double check the SDK samples.
Reply all
Reply to author
Forward
0 new messages