Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Code Samples & Tips > Additional Libraries
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.


Pretty printing library


Reply
 
LinkBack Thread Tools Display Modes
  #21 (permalink)  
Old 12-29-2007, 05:36 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Never one to shirk a challenge I buckled down to it and got a threading workaround sorted. Version 1.4 attached has a new CopyImageToClipboard function!

Quote:
I presume it paste's the bitmap where the current cursor is on the page?
Yes. If the source image was originally a jpg you may have to fiddle its' dpi setting or resize it to get the result you want. See post #11 onwards in this thread http://www.basic4ppc.com/forum/showthread.php?t=1349
Attached Files
File Type: zip RichTextBoxDesktop1.4.zip (20.0 KB, 19 views)

Last edited by agraham : 12-29-2007 at 08:00 PM.
Reply With Quote
  #22 (permalink)  
Old 12-29-2007, 07:53 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 17
Default

Hi,

Quote:
Originally Posted by agraham View Post
Version 1.4 attached has a new CopyImageToClipboard function!
I think you've added in the wrong help file for the dll. Can you confirm and repost please.

Thanks.

Cheers.

M
Reply With Quote
  #23 (permalink)  
Old 12-29-2007, 08:00 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 17
Default

Hi,

Just implemented Landscape, LeftMargin, RightMargin, TopMargin and BottomMargin properties and they work perfectly...

Many thanks.

Cheers.

M
Reply With Quote
  #24 (permalink)  
Old 12-29-2007, 08:01 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by markbarrett_1 View Post
I think you've added in the wrong help file for the dll.
I did. Sorry. Slip of the mouse - they are adjacent files in the folder! Reposted on original link above.
Reply With Quote
  #25 (permalink)  
Old 12-29-2007, 09:56 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 17
Default bitmaps and cursor

Hi,

Now printing images out of the database Very simple and gives great results

What would be very nice is if you can move the cursor to some arbitary location on the printed page, do your paste of the bitmap and then set the cursor to the top of the page where normal text handling can happen with normal print report logic.

Thanks.

Cheers.

M
Reply With Quote
  #26 (permalink)  
Old 12-30-2007, 10:18 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by markbarrett_1 View Post
What would be very nice is if you can move the cursor to some arbitary location on the printed page, do your paste of the bitmap and then set the cursor to the top of the page where normal text handling can happen with normal print report logic.
Sorry, that's not possible. The page layout is done at print time according to the margins and page size specified. Until then the contents of the RichTextBoxDesktop are just a linear stream of text and formatting commands so there is no way to predict where information will be printed on the page and hence no way to position the cursor at an arbitrary page location.
Reply With Quote
  #27 (permalink)  
Old 12-30-2007, 11:08 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Version 1.5 attached tidies up pasting from the clipboard slightly. The help about the paste methods is clarified and a new PasteText method pastes only unformatted text.
Attached Files
File Type: zip RichTextBoxDesktop1.5.zip (20.1 KB, 63 views)
Reply With Quote
  #28 (permalink)  
Old 12-30-2007, 07:28 PM
Junior Member
 
Join Date: Aug 2007
Location: Australia
Posts: 17
Default

Hi,

Quote:
Originally Posted by agraham View Post
Sorry, that's not possible.
Oh well....Its a great library none the less...With clever form design, you should be able to do most things.

Cheers.

M
Reply With Quote
  #29 (permalink)  
Old 01-16-2008, 08:09 AM
Knows the basics
 
Join Date: Aug 2007
Posts: 53
Default Is a device dummy possible?

Just like Hardware.DLL and HardwareDesktop.dll

If I had the resources I would compile one myself. It would be a good workaround for an IDE bug: (http://www.basic4ppc.com/forum/showt...=8649#post8649)
__________________
Unclutter your code -- use an obfuscator
Reply With Quote
  #30 (permalink)  
Old 01-16-2008, 10:10 AM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,683
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Is a device dummy possible?
Post again if Erels' change in the next release doesn't fix the problem and I'll do it then when I have the time.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 08:46 PM
printing capabilities Cableguy Basic4ppc Wishlist 13 07-21-2008 04:02 PM
Door library (Beta) - Special library Erel Official Updates 48 07-18-2008 03:33 PM
Merging Outlook library and Phone library Erel Official Updates 2 07-14-2008 04:38 PM
printing and barcode printing help jchal Questions & Help Needed 3 06-02-2008 07:05 PM


All times are GMT. The time now is 09:10 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0