Data Access Worldwide Knowledge Base

Article ID 2014
Article Title ERROR: Could not show preview - status 4404
Article URL http://www.dataaccess.com/kbasepublic/kbprint.asp?ArticleID=2014
KBase Category VDF (GENERAL)
Date Created 06/09/2004
Last Edit Date 08/12/2004


Article Text
PROBLEM:
When trying to print a report from Database Builder (Report | Check Relationships), the error below is displayed after picking a file and selecting Start Checking:
Error:
   Could not show preview !
   Status << 4404 >> on line # 23758

SOLUTION:
Make sure you have a default printer installed. This happens when no printer is defined and you try to print a WInprint report -- WinPrint needs the printer information in order to render the report pages.

Other factors can generate error 4404 because the error is raised when the Visual DataFlex program tries to open the Preview Document window, but the WinPrint API function returns a Process Handle of 0 for the Previewer Window.

Here are some of the conditions that can also cause this error:

1) The report document has not been started yet, i.e. they are previewing a document before creating it, or they are clearing a document, then trying to preview it.

2) The WinPrint DLL has not been initialized, so there are no internal objects ready to store the report document (this should be impossible).

If there is no PreViewer window open at the time the PreviewDocument DLL function is called, then the following error condition can apply...

3) The DLL's attempt to start a process for the Previewer failed. In this case you should also see a standard windows error message that was queued by the call to the CreateProcess Windows API function. You should see this error message before the Visual DataFlex error is displayed.


Contributed By:
Dennis Piccioni
Company: Data Access Worldwide
email: dennis@dataaccess.com
Web Site: http://www.dataaccess.com


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.