Glad you got it sorted! If you have any time at all would you mind posting
what you did? I'm assuming the Excel spreadsheet was a part of the InfoPath
template?
Editing InfoPath templates manually is a bit of a black art, and the more
people know about it the better - it's practically a requirement if you want
to do any advanced InfoPath template work!
Thanks!
Gavin.
--
InfoPath Knowledge Basehttp://
www.infopathkb.com/
2B | !2B
- Show quoted text -
I followed these directions and created my folders just like these so
it would be easier to do. You have to make sure you get all of the
files in your source file or the command line doesn't work. This
didn't have anything to do with an Excel file but the manifest file.
It would seem you could just edit and resave but nothing is that
simple.
Step 1.Save as Source files to a folder say c:\DTF
Step 2 : Go to manifest.xsf and edit it. (using notepad)
Step 3 :
For repacking we use MakeCab.exe located in c:\windows\system32
Step 4 :
In the same folder c:\DTF. Create a txt file called directives.txt
(using notepad) and
Copy this code in the file:
;************************************************************
; MSDN Sample Source Code MakeCAB Directive file example
;************************************************************
.OPTION EXPLICIT
;*****************************************************************
; change the value of the caninet name for example myInfoPath.xsn
;******************************************************************
.Set CabinetNameTemplate=FlightLogForm.XSN
;*************************************************************************************************************
; change the value of the Disk Directory Template value to the
directory you want to store the xsn file into,,
;*************************************************************************************************************
.set DiskDirectoryTemplate="C:\DTF"
.Set Cabinet=on
.Set Compress=on
;*******************************************************
; Just List All the files that are in the extracted folder to be
added in the xsn file
;*******************************************************
"C:\DTF\manifest.xsf"
"C:\DTF\myschema.xsd"
"C:\DTF\schema1.xsd"
"C:\DTF\schema2.xsd"
"C:\DTF\schema.xsd"
"C:\DTF\v_cust_projects_segments3.xsd"
"C:\DTF\v_Flight_Log_Airport2.xsd"
"C:\DTF\v_Flight_Log_Charges_offline.xml"
"C:\DTF\v_customer_main_offline.xml"
"c:\DTF\v_Flight_Log_Engines.xsd"
"C:\DTF\v_Flight_Log_Positions_offline.xml"
"C:\DTF\v_FlightLog_UserList.xsd"
"C:\DTF\script.vbs"
"C:\DTF\v_cust_Projects_Segments_offline.xml"
"C:\DTF\V_Delays2.xsd"
"C:\DTF\v_Flight_Log_Airport3.xsd"
"C:\DTF\v_Flight_Log_EndHobbs1.xsd"
"C:\DTF\v_Flight_Log_Engines_offline.xml"
"C:\DTF\v_FlightLog_Aircraft2.xsd"
"C:\DTF\v_Project_Pay_Hazard1.xsd"
"C:\DTF\Main2.xsl"
"C:\DTF\template.xml"
"c:\DTF\v_Customer_Main1.xsd"
"C:\DTF\V_Delays3.xsd"
"C:\DTF\v_Flight_Log_Charges1.xsd"
"c:\DTF\v_Flight_Log_EndHobbs.xsd"
"C:\DTF\v_Flight_Log_Positions2.xsd"
"C:\DTF\v_FlightLog_Aircraft3.xsd"
"C:\DTF\v_Project_Pay_Hazard.xsd"
"C:\DTF\v_cust_Projects_Segments2.xsd"
"C:\DTF\v_Customer_Main.xsd"
"C:\DTF\V_Delays_offline.xml"
"C:\DTF\v_Flight_Log_Charges.xsd"
"C:\DTF\v_Flight_Log_Engines1.xsd"
"C:\DTF\v_Flight_Log_Positions3.xsd"
"C:\DTF\v_FlightLog_UserList1.xsd"
"C:\DTF\v_Project_Pay_Hazard_offline.xml"
"C:\DTF\CustomPrintStyle.css"
"C:\DTF\sampledata.xml"
"C:\DTF\winter.jpg"
;*********************
; End of the File
;*********************
Step 5 :
In the above file set cabinetnametemplate give the name of the output
file (FlightLogForm.xsn)
In the Set diskdirectorytemplate give the correct output path say c:
\DTF
Make sure all the extracted files are listed here
Step 6:
Save your file. And open the command prompt (CMD).
C:\windows\system32\MakeCab /f c:\DTF\directives.txt