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.


Charting library


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-03-2008, 06:46 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default Charting library

A charting library that can produce Bar, Line and Pie charts with an optional legend. Also the capability of saving images in several formats. Help file included. Requires .NET 2.0 and for the desktop only. I tried to port it to the device but had to give up. There is no GDI+ on the device and it would have been too big a rewrite. Also the bit of code that I (sort of) got working showed that the device really doesn't have enough resolution for this.

No credit to me for the charting code. It is some example Microsoft code from 2002 that I have taken, debugged, marginally ehnanced and written a Basic4PPC front end.

EDIT :- Device library and updated help added to zip.
Attached Files
File Type: zip Charts1.0.zip (62.9 KB, 138 views)

Last edited by agraham : 02-05-2008 at 02:18 PM.
Reply With Quote
  #2 (permalink)  
Old 02-03-2008, 07:52 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,143
Default

Nice job:





Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 04:49 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank you very much Agraham! This was an old wish of mine (I have already suggested this to Erel in a post). We will be totally spoiled if a device version of this library (or a similar one) can be developed. Any idea Erel?

Regards,
Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #4 (permalink)  
Old 02-05-2008, 02:21 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by yildi View Post
We will be totally spoiled if a device version of this library (or a similar one) can be developed.
Regard yourself spoiled. After starting over five times I finally made it work acceptably on the device. A few quirks probably remain. The device version is now posted in the zip together with the desktop version and an updated help. Because of the limited resolution on the device you may have to play around with properties a bit in order to get an acceptable chart.
Reply With Quote
  #5 (permalink)  
Old 02-05-2008, 05:20 PM
Junior Member
 
Join Date: Apr 2007
Posts: 24
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Thank you,
it's a nice library.
Reply With Quote
  #6 (permalink)  
Old 02-06-2008, 04:50 PM
Knows the basics
 
Join Date: May 2007
Posts: 64
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by agraham View Post
Regard yourself spoiled. After starting over five times I finally made it work acceptably on the device. A few quirks probably remain. The device version is now posted in the zip together with the desktop version and an updated help. Because of the limited resolution on the device you may have to play around with properties a bit in order to get an acceptable chart.
Wow Agraham,
I definitely feel spoiled! Thank you very much for this new library

Best regards,

Murat
__________________
PC: Laptop CoreDUo, Windows XP SP2 French
PPC: TyTN, WM5 French -> iPAQ 214 WM6 French (to diverge or not to diverge,...)
Reply With Quote
  #7 (permalink)  
Old 02-08-2008, 04:42 PM
Junior Member
 
Join Date: Apr 2007
Posts: 24
Awards Showcase
Beta Tester 
Total Awards: 1
Default

How can i print out the image (chart) in my program ?
i don't want save it as image and print it with paint etc.
Reply With Quote
  #8 (permalink)  
Old 02-08-2008, 04:59 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Quote:
Originally Posted by Heinz View Post
How can i print out the image (chart) in my program ?
i don't want save it as image and print it with paint etc.
Use the latest version (1.5) of my desktop only printing library here Pretty printing library

Use

CopyImageToClipboard(Img AS Image) : Copies the specified image to the clipboard from where it may be pasted into a document. Image can be any source of an image in Basic4PPC. .e.g. Form.Image or ImageControl.Image or ImageList.Item(x) etc.

And then

PasteBitmap : If there is a bitmap on the clipboard it will be pasted into the RichTextBoxDesktop object. No control is available over size so some experimentation will be necessary to get the required result.

You can do loads of other pretty stuff with text as well.
Reply With Quote
  #9 (permalink)  
Old 02-08-2008, 05:54 PM
Junior Member
 
Join Date: Apr 2007
Posts: 24
Awards Showcase
Beta Tester 
Total Awards: 1
Default

hello agraham,
this was a brilliant idea.
with only a few commands.

Thank you verry much.

Code:
Sub Button3_Click
    RT.New1("Form1", 10, 310, 570, 180)
    RT.Clear
    RT.Visible = False
    RT.CopyImageToClipBoard(Image1.Image)
    RT.PasteBitmap
    RT.PrintPreview
End Sub
Reply With Quote
  #10 (permalink)  
Old 02-08-2008, 06:05 PM
agraham's Avatar
Basic4ppc Expert
 
Join Date: Jul 2007
Location: Cheshire, UK
Posts: 1,700
Awards Showcase
Beta Tester Forum Contributer 
Total Awards: 2
Default

Just in case you hadn't thought of it you can can control the horizontal position of the printed image with the Alignment property and/or the Tab method.
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
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


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


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