* *

Coding

User

Welcome, Guest. Please login or register.
June 18, 2013, 09:47:06 PM

Login with username, password and session length

Menu

Stats

Members
Stats
  • Total Posts: 12072
  • Total Topics: 1690
  • Online Today: 72
  • Online Ever: 150
  • (September 26, 2012, 02:29:19 PM)
Users Online
Users: 2
Guests: 59
Spiders: 6
Total: 67
zappa52
GWS
Sosospider
Google (2)
Baidu (2)
Acoon

Recent Topics

Author Topic: Print clipboard.  (Read 759 times)

0 Members and 1 Guest are viewing this topic.

Offline rosslcs

  • Newbie
  • *
  • Posts: 30
  • Bananas: 0
Print clipboard.
« on: March 23, 2012, 07:39:26 AM »
Is it possible to print the contents of the clipboard using Creative Basic ?.
 
  I would be grateful if anyone has any code examples for this.
 

Offline Larry McCaughn

  • Administrator
  • Full Member
  • *****
  • Posts: 193
  • Bananas: 4
  • Gender: Male
Re: Print clipboard.
« Reply #1 on: March 23, 2012, 12:48:11 PM »
The easiest way I can think of, although I don't use CB, is to create a rich edit control and used the commands from the help file:
Quote
CONTROLCMD window |
 dialog, ID, @RTPASTE
Use this command to insert the data from
 the Clipboard into the rich edit control at the
insertion  point, the location of the caret. Data is inserted only if the
Clipboard  contains data in a recognized format.
CONTROLCMD
window | dialog,  ID, @RTPRINT {, margin}
Opens the
standard print dialog and  prints the contents of the rich edit control.
Optional margin value specifies  the printer margin in twips. 1440 twips = 1
inch. Default margin is 1/2 inch.

 
LarryMc
Admin - Here and @ Ionic Wind Software Forums
Author of Custom Button Designer, Custom Chart Designer, Snippet Manager, and IWB+ (A Visual Designer for IWBasic 2.x)

 

To link to us use this code/button on your site

http://www.codingmonkeys.com/images/cm_link.gif