Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
Posted - 10/22/2003 : 06:09:34 I am new at using Print Preview. First, I like it very much. But i have a problem with importing the contents of a RichtextBox. The RichTextBox is on a form1. I only get page 1, the richtextbox has a multipae document. The pages after page 1 are blank. I have tried several different things, but get the same resuts. What am I doing wrong?
Preview1.AddFirstPage "1.0 in", "1.0 in", "1.0 in", "1.0 in" Preview1.ParaText RichTextBox1.Text Preview1.EndDocument prOTScreen 'in the above code I get only one page
Preview1.ShowRTF (App.Path & "\test1.rtf") Preview1.EndDocument prOTScreen 'First page is ok pages 2-4 are blank
With Preview1 .AddFirstPage "0,5 in", "0.5 in", "0.5 in", "0.5 in", ".75 in" .PageSize = prPSA4 .ShowRTF "C:\GABNew\Test1.rtf" .EndDocument prOTScreen End With 'Again this prints the first page ok but pges 2-4 are blank