DOCUMENT:Q190924 07-AUG-1998 [vbwin] TITLE :BUG: Command Line Argument /MAKE Truncates User Documents PRODUCT :Microsoft Visual Basic for Windows PROD/VER: OPER/SYS:WINDOWS KEYWORDS: ====================================================================== --------------------------------------------------------------------- The information in this article applies to: - Microsoft Visual Basic Professional and Enterprise Editions for Windows, version 6.0 --------------------------------------------------------------------- SYMPTOMS ======== When using the Microsoft Visual Basic command line argument /MAKE to compile an ActiveX Document EXE, User Documents may get truncated. RESOLUTION ========== Open the project in Visual Basic and compile the project from the IDE. STATUS ====== Microsoft has confirmed this to be a bug in the Microsoft products listed at the beginning of this article. We are researching this bug and will post new information here in the Microsoft Knowledge Base as it becomes available. MORE INFORMATION ================ Steps to Reproduce ------------------ 1. Start Microsoft Visual Basic, creating a new ActiveX Document EXE. UserDocument1 will be created by default. 2. In the Project window, double-click User Documents. 3. In the Project window, right-click UserDocument1, and click View Object. 4. Set the Top property of UserDocument1 to 16000. 5. Using the Toolbox, create two labels on the form, setting the following properties: Name Caption Top ---- ------- --- Label1 "Top 8000" 8000 Label2 "Top 15000" 15000 6. Save the project, and exit Visual Basic. 7. From a command line, enter the following command: "c:\program files\devstudio\vb98\vb6.exe" /MAKE "c:\temp\project1.vbp" NOTE: Modify the path information to correspond to the directories for both the installation of Microsoft Visual Basic and the saved project. Quotes should be used if the path contains long filenames. 8. Using Microsoft Internet Explorer, open the file UserDocument1.vbd, which should reside in the same directory as the project created above. Scroll down and note that the first label is visible but the second is not. NOTE: The height to which the UserDocument is truncated depends on the video resolution of the development machine. For instance, non-exhaustive testing found that on a machine with 800x600 resolution, the UserDocument was truncated to 8775 twips (6.1 inches). On a machine with 1024x768 resolution, the UserDocument was truncated to 8+ inches. REFERENCES ========== For additional information, please see the following article in the Microsoft Knowledge Base: ARTICLE-ID: Q190165 TITLE : BUG: Compile Errors When Using Command Line Argument /MAKE Additional query words: kbdss kbDSupport kbVBp kbVBp600bug kbCompiler kbIDE ====================================================================== Platform : WINDOWS Issue type : kbbug ============================================================================= THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT 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. Copyright Microsoft Corporation 1998.