I reproduced the error in MFEditor using the rvf I sent in a separate email.  Its in the RVItem PrintToBitmap.  The RVPrint is nil so the test of Assigned(...RVPrint.OnPrint...) fails.
I did modify the initialization of MFEditor to registerClasses TCheckBox and TPngObject
			
			
									
						
										
						GPF when printing
- 
				jimmaguire
- Posts: 207
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
It works in ActionsTest
I don't see the difference yet
			
			
									
						
										
						- 
				jimmaguire
- Posts: 207
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
- 
				jimmaguire
- Posts: 207
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Problem is due to printing TCheckbox
The TRVPrint has an OnPrintComponent that I use to print the check box.  I don't see the same option on TSRVPrint
			
			
									
						
										
						- 
				jimmaguire
- Posts: 207
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Same error with TSRVCheckBox in MFInsertControls
I created a small rvf with just 1 check box and it fails on same line of code, thought TSRVCheckBox might work.
			
			
									
						
										
						- 
				Sergey Tkachenko
- Site Admin
- Posts: 17952
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
- 
				jimmaguire
- Posts: 207
- Joined: Thu Sep 15, 2005 1:41 am
- Location: California
Easy to reproduce with demos
Run InsertControls, open SRVControls.rvf and try its File/Print.