Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Making an editor with an rtf control
Message
 
 
To
14/09/2004 14:35:35
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00942037
Message ID:
00942038
Views:
17
This message has been marked as the solution to the initial question of the thread.
WITH thisform.RTFControl1.Object
	.SelStart = 0
	.SelLength = 0
	.SelPrint(nHDC)
ENDWITH
>I'm making an editor with a rtf control. I'm starting with an existing document that i dispay in my editor. Everything works well except printing my document. When i don't change a thing on my document it is printed like it's displayed on the screen.
>
>When i change someting in my document only the text changed is printed. For ex : If i put one word in bold from a hole text only the word is printed.
>
>I use the following to print my text
>DECLARE INTEGER CreateDC IN WIN32API ;
> INTEGER lpszDriver, ;
> STRING @ lpszDevice, ;
> INTEGER lpszOutput, ;
> INTEGER lpInitData
>DECLARE INTEGER DeleteDC IN WIN32API INTEGER hDC
>nHDC = CreateDC(0,"MyWinPrinterName",0,0)
>thisform.RTFControl1.SelPrint(nHDC)
>
>Does somebody has an idea ?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform