🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #10896

Printer Spooling Problem

#10896
From: Eyyub Volkan �ektimur
Date: Fri, 19 Mar 2004 15:25
40 lines
2253 bytes
Hi,

I have to print big size of images to printer , rendered from OpenGL. I have
solved this problem by dividing the scene into parts and save them to files.
then i merge all bitmaps to printer's canvas one by one. (by using BitBlt)
this works well on some printers (HP 1120C and HP 5100 PCL6 laser). On
another printer (HP 1050C plotter), it can copy some starting parts of image
but then it starts to give an error  when coping remaining parts:

Not enough storage is available to process this command.
ERROR_NOT_ENOUGH_MEMORY

this error is returned by BitBlt function. when i look to printer status, it
says "Spooling" ... I have enough spaces on my hardisks , the total size of
image is ~300 MB. What can be the problem ? is there any setting to adjust
spooling size ??? thanks for help..

a part from my code;
-----------------------------------------------------
 Printer()->BeginDoc();
 for (int cx=0;cx<DivXY;cx++)
     for (int cy=0;cy<DivXY;cy++)
          {
          ...
          ...
          ...

BitBlt(Printer()->Canvas->Handle,....,Bitmap->Canvas->Handle,0,0,SRCCOPY)
          }
 Printer()->EndDoc();


P.S. : Borland C++ Builder 6.0 Prof. SP 4.0 , Windows 2000 Prof. SP 4.0

-- 
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
www.proyatech.com
Technical Details
Message-ID: <405b10f7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,27bd4d57d5aee86d,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-03-19 07:36:21 PST
From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Printer Spooling Problem
Date: Fri, 19 Mar 2004 17:25:16 +0200
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.232.9.2
Message-ID: <405b10f7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1079709943 213.232.9.2 (19 Mar 2004 07:25:43 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.frii.net!newsfeed.frii.net!news.compaq.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail