|
-
Jun 13th, 2006, 04:36 AM
#1
Thread Starter
Lively Member
Graphics programming in VBA (howto / can you?)
simple question, hopefully a simple answer.
is it possible to do a custom 'drawing' in vba? e.g. to a '.wmf' file?
the reason is i need to create a custom chart to do some analysis and the standard types (including pivots) in excel & access don't work.
what i need to do is draw lines, write simple text & draw rectangles etc, nothing fancy. then to show the .wmf in a picture box (that bit i can do).
I'm looking for the wmf route to allow me to print the chart / export it without too much effort. working with a bmp would be ok as well though.
question is: is this possible in VBA? I know its possible in vb.net but at the mo I've been informed i'm stuck with VBA...
-
Jun 13th, 2006, 07:04 AM
#2
Re: Graphics programming in VBA (howto / can you?)
Unfortunately there is very very limited support, if any, in VBA. You have to result to vb GDI APIs. Not an easy task. Perhaps your allot better off if you use a third party control.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Jun 13th, 2006, 08:03 AM
#3
Thread Starter
Lively Member
Re: Graphics programming in VBA (howto / can you?)
thats kind of what i figured. oh well.
thanks anyway. i can see sorting out this in vb.net (as a rough & ready draft application) in a few hours this weekend. just means i'll be the only one here running it.
-
Jun 13th, 2006, 08:12 AM
#4
Re: Graphics programming in VBA (howto / can you?)
What version of .net are you running? Do you have VSTO?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|