load an adobe dynamic form file

logicaldeath

New Member
I have a .pdf created through adobe lifecycle designer (it's a dynamic pdf ) i want to add this pdf to my windows appthis is what i tried\[code\]File file1 = new File(fileName);System.Xml.XmlDocument xfadoc = new System.Xml.XmlDocument();xfadoc.LoadXml(fileName);\[/code\]here's how i get filename\[code\]OpenFileDialog dialog = new OpenFileDialog();dialog.InitialDirectory = "c:\\";dialog.Filter = "pdf files (*.pdf) | *.pdf | All Files (*.*) | *.* | xdp files (*.xdp) | *.xdp ";dialog.FilterIndex = 2;dialog.RestoreDirectory = true;dialog.CheckFileExists = true;dialog.DefaultExt = "pdf | xdp";fileName = dialog.FileName.ToString();\[/code\]but when i click on open file button and browse to where i have stored it ; it doesnot even appearAlso when i try to load this file in my C# windows app it gives me an exception at the following line \[code\] xfadoc.LoadXml(fileName);\[/code\]the exception says that \[code\]'Data at root level is invalid'\[/code\]If i say that i have loaded the string (filepath name) someone please tell me how can i extract the xml part only form this dynamic file
 
Back
Top