Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Microsoft Office > Other Office > BOOK: Beginning InfoPath 2003
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning InfoPath 2003
This is the forum to discuss the Wrox book Beginning InfoPath 2003 by F. Scott Barker; ISBN: 9780764579486
ISBN: 0-7645-7948-7
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning InfoPath 2003 section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old March 23rd, 2009, 07:22 PM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Infopath 2003 book exercise files

I am not able to use the files in Chapters 6 and 7. I get a message stating that the security on my computer will not let me open them. I am using Vista. I turned off all security on my computer and still cannot open the files. It keeps referring to a path C:\\books/infopath/samples/chapter?

I created directories with those parameters and have still not been able to open the exercise files. I was told Wrox does not support code. Even though this is the corresponding code to the book.

I am an instructor and was not able to fully study this because of those problems. Does anyone know how I can get these files to open and connect to their data source. I spent hours trying to figure this out and am out of ideas.

Thanks
Reply With Quote
  #2 (permalink)  
Old March 23rd, 2009, 07:49 PM
jminatel's Avatar
Wrox Staff
Points: 13,906, Level: 51
Points: 13,906, Level: 51 Points: 13,906, Level: 51 Points: 13,906, Level: 51
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,833
Thanks: 51
Thanked 101 Times in 80 Posts
Default

What is it that you are opening the files with in Vista? WinZip or the built in file decompressor in Vista? The book was written before Vista but I can't imagine that's really the problem.

What I'm confused by is, what exactly is referring you to "C:\\books/infopath/samples/chapter"?

When I unzip these files, the paths look like this:
..\557130\ch5
..\557130\ch6

so depending on where you unzip them you should see:
C:\557130\ch5\Lookups.xsn
C:\557130\ch5\manifest.xsf
C:\557130\ch5\myschema.xsd
C:\557130\ch5\Products XML.xsd
C:\557130\ch5\Products.xml
C:\557130\ch5\Products.xsd
C:\557130\ch5\Products1.xsd
C:\557130\ch5\Products2.xsd
C:\557130\ch5\readme.txt
C:\557130\ch5\sampledata.xml
C:\557130\ch5\template.xml
C:\557130\ch5\upgrade.xsl
C:\557130\ch5\view1.xsl

and:
C:\557130\ch6\readme.txt
C:\557130\ch6\SimpleTypes
C:\557130\ch6\SupportedTypes
C:\557130\ch6\XMLSchemaValidation
C:\557130\ch6\XMLTypeSystem
C:\557130\ch6\SimpleTypes\simpleTypes.xsd
C:\557130\ch6\SimpleTypes\simpleTypes.xsx
C:\557130\ch6\SupportedTypes\BuiltInDataTypes.xsd
C:\557130\ch6\SupportedTypes\BuiltInDataTypes.xsx
C:\557130\ch6\SupportedTypes\manifest.xsf
C:\557130\ch6\SupportedTypes\sampledata.xml
C:\557130\ch6\SupportedTypes\SupportedTypes.xsn
C:\557130\ch6\SupportedTypes\template.xml
C:\557130\ch6\SupportedTypes\view1.xsl
C:\557130\ch6\XMLSchemaValidation\Contact.xsd
C:\557130\ch6\XMLSchemaValidation\manifest.xsf
C:\557130\ch6\XMLSchemaValidation\sampledata.xml
C:\557130\ch6\XMLSchemaValidation\template.xml
C:\557130\ch6\XMLSchemaValidation\view1.xsl
C:\557130\ch6\XMLSchemaValidation\XMLSchemaValidat ion1.xsn
C:\557130\ch6\XMLTypeSystem\EMailsData.xsd
C:\557130\ch6\XMLTypeSystem\EMailsData.xsx
C:\557130\ch6\XMLTypeSystem\EMailValidationSample. xsn
C:\557130\ch6\XMLTypeSystem\manifest.xsf
C:\557130\ch6\XMLTypeSystem\sampledata.xml
C:\557130\ch6\XMLTypeSystem\template.xml
C:\557130\ch6\XMLTypeSystem\view1.xsl

Last, who told you Wrox doesn't support code?
__________________
Jim Minatel
Associate Publisher
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
  #3 (permalink)  
Old March 24th, 2009, 08:35 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Code

Thanks for answering so promptly. The files are decompressed using the Vista utility. They do unzip to the directories you have mentioned. When I open a files the path I mentioned is part of the error message.

Level 1 and 2 support said they do not support code.

This is one of the error messages:

[code] :///C:\Books\Infopath\Samples\Chapter%207\Chapter%207% 20Intro.xsn The following DataObject either cannot be created or cannot be initialized: Employees Id and Name The query cannot be run for the following DataObject: Employees Id and Name InfoPath cannot run the specified query. InfoPath cannot connect to the data source. Safety settings on this computer prohibit accessing a data source on another domain. [10:21:03 PM] {/code]

I am on a standalone computer.

Thanks
Reply With Quote
  #4 (permalink)  
Old March 24th, 2009, 08:42 AM
Registered User
 
Join Date: Mar 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Anoher error message

Here is the another message is see:

Code:
:///C:\Books\Infopath\Samples\Chapter%207\Chapter%207%20Intro.xsn The following DataObject either cannot be created or cannot be initialized: Employees Id and Name The query cannot be run for the following DataObject: Employees Id and Name InfoPath cannot run the specified query. InfoPath cannot connect to the data source. Safety settings on this computer prohibit accessing a data source on another domain. [10:21:03 PM]

This is when I try to view the form in Chapter 6. That is where I saw the path and figured maybe the files should be there.


Thanks

Marlene
Reply With Quote
  #5 (permalink)  
Old March 24th, 2009, 12:01 PM
jminatel's Avatar
Wrox Staff
Points: 13,906, Level: 51
Points: 13,906, Level: 51 Points: 13,906, Level: 51 Points: 13,906, Level: 51
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,833
Thanks: 51
Thanked 101 Times in 80 Posts
Default

Based on the file named in your error message, your question is actually about the Beginning InfoPath 2003 book so I've moved the question here to that book's forum instead of it's original location in the Professional InfoPath forum. I'll take another look when I've had a chance to look at the Beginning book's code.
__________________
Jim Minatel
Associate Publisher
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
  #6 (permalink)  
Old March 24th, 2009, 12:07 PM
jminatel's Avatar
Wrox Staff
Points: 13,906, Level: 51
Points: 13,906, Level: 51 Points: 13,906, Level: 51 Points: 13,906, Level: 51
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,833
Thanks: 51
Thanked 101 Times in 80 Posts
Default

OK, now that I know the right book, I see that this is a known issue and discussed here:
Sample Code is frustratingly broken

there are some workarounds and "works on my computer" type answers that have not worked for everyone but they may work for you.
__________________
Jim Minatel
Associate Publisher
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
  #7 (permalink)  
Old April 30th, 2009, 04:39 PM
Registered User
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 2 Times in 1 Post
Thumbs up Chapter 6 & 7 issues

For the book Beginning InfoPath 2003 ISBN 9780764579486


Okay, I read the postings that all the frustrated people said regarding chapters 6 & 7 files. I was getting the same error message that everyone else got. I did the steps that were suggested in the Thread posted on 06-16-05 by Ken@adler.net "Sample Code is frustratingly broken" .. it was to create the filepath and move the files to them. Still could not get the files opened properly.

Now, how may of you went straight to the file and opened the file from your explorer view? I know I did.

Once I read and followed the actual steps in the book.....the file opened up but after fixing the issue of needing to republishing the file, it worked fine. I did find that it did NOT matter where the file was located on my computer.

Hope this helps those who try this book, maybe again for the first time.

Sincerely,
Kathy
NotSoTechi
Reply With Quote
The Following 2 Users Say Thank You to NotSoTechi For This Useful Post:
jminatel (April 30th, 2009)
  #8 (permalink)  
Old April 30th, 2009, 08:43 PM
jminatel's Avatar
Wrox Staff
Points: 13,906, Level: 51
Points: 13,906, Level: 51 Points: 13,906, Level: 51 Points: 13,906, Level: 51
Activity: 11%
Activity: 11% Activity: 11% Activity: 11%
 
Join Date: May 2003
Location: Indianapolis, IN, USA.
Posts: 1,833
Thanks: 51
Thanked 101 Times in 80 Posts
Default

Thanks a TON for sharing this Kathy!
__________________
Jim Minatel
Associate Publisher
Wiley Technology Publishing
WROX Press
Blog: http://p2p.wrox.com/content/blogs/jminatel
Wrox online library: http://wrox.books24x7.com
Wrox on Twitter: http://twitter.com/wrox
Did someone here help you? Click on their post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Infopath 2003 Picture Problem slcuster Infopath 0 August 28th, 2008 08:20 AM
Infopath 2003 Error Zeetec Infopath 0 April 7th, 2008 05:01 AM
User Login InfoPath 2003 ruso77 Infopath 0 April 12th, 2007 03:37 PM
InfoPath 2003 Object Library debsoft General .NET 2 April 30th, 2004 09:36 AM
Invoking Word 2003 document from InfoPath 2003 debsoft General .NET 0 April 28th, 2004 08:17 AM



All times are GMT -4. The time now is 11:21 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.