Results 1 to 4 of 4

Thread: CreateFieldDefFile in Windows 98

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    15

    CreateFieldDefFile in Windows 98

    Hi,

    I was wondering why the following code does not want to work in Win 98:

    Declare Function CreateFieldDefFile Lib "p2smon.dll" (lpUnk As Object, ByVal fileName As String, ByVal bOverWriteExistingFile As Long) As Long

    This creates a text file of the database structure for Crystal Reports, but an error message says that p2smon.dll is not found. It is in the system directory, but it does not want to register.

    Any solution to this?

    Thanks

  2. #2
    Fanatic Member SkiNLaB's Avatar
    Join Date
    Jan 2002
    Location
    Sydney, Australia
    Posts
    747

    Re: CreateFieldDefFile in Windows 98

    ahh win98, is this ur comp? if so, UPGRADE!?

    what kind of register error are you getting? have u googled?

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2004
    Posts
    15

    Re: CreateFieldDefFile in Windows 98

    No, I have XP on my computer, but I am trying to accomodate users that may still be using 98.

    I did figure out that I don't need to create the file once I have created the report in CR and have attached the data structure to it. So my original question is not an issue.

    But I am having a problem getting a "Physical database not found" error message when I try to view the report with crviewer. I have tried loading other dlls, but I still can't get past the error.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: CreateFieldDefFile in Windows 98

    Physical Database Not Found error is because of a few reasons. If you dont have all
    the required dependencent dlls, LogOn to the server via CR code in VB, have a corrupt
    dll in memory, etc.

    If you have the Developer version of CR you will have a help file called
    Runtime.hlp. It contains all the required dlls/ocxes for each method/function/
    and control used in your vb project.

    It is located -
    ?:\Program Files\Seagate Software\Crystal Reports\Developer Files\Help\Runtime.hlp


    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width