Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8326559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:48:10+00:00 2026-06-09T00:48:10+00:00

Hello i was trying to create a chart using chartdirector and vb.net what i

  • 0

Hello i was trying to create a chart using chartdirector and vb.net
what i exactly trying to do is create a sub that returns an image as object class and then append what ever return from the sub to image tag in my page

Here is what i have done so far :

   Private Sub createChart(ByVal sender As System.Object, ByVal e As 
    _System.EventArgs)
    Dim cd As Integer = CreateObject("ChartDirector.API")
    Dim chart As XYChart = New XYChart(700, 170)
    Dim values As Double() = {25, 18, 15, 12, 8, 30, 35}
    Dim labels As String() = {"Labor", "Licenses", "Taxes", "Legal", 
    "Insurance", "Facilities", "Production"}
    chart.setPlotArea(30, 20, 200, 200)
    chart.addBarLayer(values)
    chart.xAxis().setLabels(labels)
    HttpContext.Current.Response.ContentType = "image/png"
    Dim mina As BinaryWriter = chart.makeChart2()
    HttpContext.Current.Response.End()

End Sub

the code break at this line

 Dim mina As BinaryWriter = chart.makeChart2()

with the following error Argument not specified for parameter format of public overridable function makechart2(format as integer ) As Byte()

any idea how to fix this will be great
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T00:48:11+00:00Added an answer on June 9, 2026 at 12:48 am

    According to the error, makeChart2 requires an integer parameter, and it also looks like it returns an array of Byte, not a BinaryWriter.

    I’m not familiar with chartdirector, so I don’t know if there is an alternative, or if you’ll have to refactor your code, but if it is the latter, you’ll need to new up a BinaryWriter, and Write the return value from makeChart2 to it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I was trying to remove objects from object array that I have and
I am trying to create a small function that returns the number of spaces
I have created a type list. I then create a class using a template
I'm trying to follow this tutorial: http://sqlcipher.net/ios-tutorial/ I create a database called sqlcipher.db then
Hello I am trying to create a stacked barplot using the following code: test
Hello I am trying to create a for loop that loops through the linked
I am trying to create a simple hello world example using swapcontext() Here is
Hello I am trying to create a custom expandable listview, but the documentation on
I'm trying to create an Hello World JSF application. I have a bean with
I'm trying to follow the instructions located at How-To Create a Hello World Snap-in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.