mardi 3 juillet 2018

Microsoft Word and PHP

I have searched a lot of options to parse docx file and get the textinput id and its value also the checkbox id and its value , I'm working on a project and it will be written on php , I tried xml option but there is no value tag in the xml found

Idea is : -

  1. Input : Web page to load the Questionnaire ( docx file containing text input and check box values )
  2. Result : ID -> Value which i will save to SQL table or export to txt file and parse it

I was able to get what i need but only using C# and i have no clue on it,Also .NET will be hard to implement with php project based, the solution i found cost and we need opensource Link here

The docx file contain a lot of text and picture but all i need is the ID and Value from textinput and checkbox

some sample data which i can retrieve, pair in mind i have different text and checkbox up to 160 object and 1 dropdown menu selection, which i wasn't able to get its value in anyway

Type            |"Name"                 =       Value               
FormTextData    |"TextFieldCompanyName" =       tesst corp
FormTextData    |"TextCompanyAddress"   =       testing
FormTextData    |"TextCompanyContact"   =       jala
FormTextData    |"TextFieldEmail"       =       w@yz
FormTextData    |"TextFieldWebsite"     =       www.a.xyz
FormTextData    |"TextFieldPhone"       =       +12345678
FormTextData    |"TextFieldPartner"     =       xyznk
FormTextData    |"TextFieldContacts"    =       xyznk
FormCheckBoxData|"CheckBoxEvidence"     =       True
FormCheckBoxData|"CheckBoxInvestigate"  =       False
FormCheckBoxData|"CheckBoxLeak"         =       True                                    
FormCheckBoxData|"CheckBoxResource"     =       True                                    
FormCheckBoxData|"CheckBoxData"         =       False




Aucun commentaire:

Enregistrer un commentaire