Print and Print preview

Print and Print preview

Post by Gene Wagenbre » Wed, 01 Apr 1998 04:00:00



Using VC++ MDI. I have a view with no document. I get the
expected warning about no doc when run in debug mode. With
the view showing I can pick Print or Print Preview on the
mainframe menu and it works fine. But if I pick Print
Preview, then the Print button on the Print Preview
screen it dies in some MFC routine accessing <view>->pDoc.
It checks to see if its NULL. It isnt, its 0xdddddddd .
I die when it is dereferenced. HELP!!!

Gene W
--
-------------------------------------------------------------------
Gene Wagenbreth  Programming for Dollars
My opinions are mine, I think.
-------------------------------------------------------------------

 
 
 

1. Rich Edit Control Printing Problem (like the print preview problem)

Hi,
I've been using the Windows Rich Edit Control to add RTF to some software.
Problem is that when  I print out, what happens is that the text on the
right
can be 'clipped'. I know there is a known problem with print preview with
the RichEdit (problem has been around for a while but 'mysteriously' wasnt
fixed
for windows 98) - and this is like a less dramatic version of the same
problem.
Basically I use the same RichEdit to draw to different areas of the same
page,
by repeatedly loading it with data then FormatRange - ing it to the screen /
printer.

I can't see how its a 'clip rect' thats doing if - what I mean is say I have
a control
containing:
abcdefghijk
abcdefg
abc
.. *every* line (not just the longest one) can be 'unfinished' - bits or
even full
letters can be missing.

Its strange cos sometimes it prints fine, then a subtle change somewhere
can cause the problem to appear just in certain places.
Any suggestions? I've searched the newsgroups for a solution and I couldn't
see it - although the search gave the impression the RichEdit is .. erm ..
not quite as bulletproof and robust as it could be..:)
(I've printed from Windows95 and Windows98 to an HP4000TN, the rich edit is
wrapped using an MFC CRichEditCtrl, compiled using MSVC++ 6)
Thanks in advance,
Brian.

2. How do I tell sendmail NOT to accept certain domainspaces as local?

3. Automated RTF printing & non-editable print preview

4. BC Tel Wants to Drop Touch Tone Charge

5. Printing and Print Preview discrepency

6. Distiller not respecting margins

7. Printing / Print Preview problems

8. Anonymous ftp bug with UCX 3.3 ECO10

9. Print and Print Preview

10. HELP!!!! MFC PRINT/PRINT PREVIEW

11. Print and print preview problem (ASSERT error when allocating GDI font resource in OnBeginPrinting)

12. Print/Print Preview

13. printing and print preview