codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Error 20500 `Not enough memory` when calling a Crystal Report from VB application  lsantaca at 09:59 on Wednesday, September 17, 2003
 

Hi,

I have a VB application that calls a couple of reports. The first one works fine but when I try to call the second one I get the error:

20500 Not enough memory for the operation.

The report works fine if I call it from the Seagate Desktop. I'm using VB 6.0, Seagate 7.5, Windows XP and the database is Oracle 8.1.7. I also tried with Windows 2000 but I get the same error.

Any suggestions on what could be the problem?

Many thanks,
Lorenzo



  Re: Error 20500 `Not enough memory` when calling a Crystal Report from VB application  Nunina at 14:40 on Thursday, January 29, 2004
 

Hi!

I get the exact same error, and haven't been able to solve the problem. I see that you posted this message in September. Did you solve it?

If so, please, can you tell me how???

Thanks in advance,

Nunina

  Re: Error 20500 `Not enough memory` when calling a Crystal Report from VB application  ravichandrarao at 16:00 on Thursday, October 14, 2004
 

R u able to solve this problem ? If not you can try these options.

1)Set the Printer page size Accordingly.
2)Set the printer setting(DPI to 1200)to the maximum available
3)If you are Printing directly through crystal report OCX (with out the preview )
Follow the VB code.

‘CryChkPrint is a Crystalreport .OCX

CryChkPrint.Destination = crptToWindow ‘1*
CryChkPrint.WindowState = crptMinimized '1*

'Load Some Dummy form
Dim Frmchengine As New frmdummychkprint '1*

‘Set the dummy forms windowstate as Minimized
Frmchengine.WindowState = vbMinimized

‘ load the instance of the dummy form
Load Frmchengine '1*

‘Set the parent as the dummy form
CryChkPrint.WindowParentHandle = Frmchengine.hWnd '1*
CryChkPrint.Action = 1 '1*


CryChkPrint.Destination = crptToPrinter '1*
CryChkPrint.PrintReport '1*

‘Unload the dummy from and set nothing
Unload Frmchengine '1*
Set Frmchengine = Nothing '1*

This has solved my problem, I’m sure it will solve yours










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: Floating Menu
•  Re: drop down tool tip
•  Re: Using Javascript to create simple tabs
•  Re: Customizable Event Calender, using C#
•  Re: Accessing user control in master page from any content page
•  Re: import contacts of msn/yahoo
•  Re: Copy files from one directory to another in a local network
•  Re: onmouseover change image and text
•  Re: image in asp.net control from sql server as image datatype


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010