Page Index Toggle Pages: 1 Send TopicPrint
Hot Topic (More than 10 Replies) Upgrade and PDF Export (Read 5607 times)
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Upgrade and PDF Export
Apr 5th, 2007 at 3:53pm
Print Post  
Good Day,

We purchased the Pro version of the FC.Net controls to upgrade from the demo version as we are getting towards being able to release a product and have run in to a minor problem.

The PDF Export no longer seems to work.  Do I need to make some change(s) to the .licx file??  Or did I miss something else when upgrading the controls.

Just FYI, although it should not matter, we do have Adobe Acrobat Viewer 8 installed.

Thank you,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #1 - Apr 5th, 2007 at 4:39pm
Print Post  
Good day,

Did you get a compilation error, or a runtime one?

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #2 - Apr 6th, 2007 at 2:26pm
Print Post  
No errors at all.  It simply hangs up at the call to pdfex.export.  The code is as follows:

           Try
               Dim pdfex As PdfExporter = New PdfExporter
               pdfex.AutoOrientation = False
               pdfex.AutoScale = MindFusion.Diagramming.Export.AutoScale.FitToPage
               pdfex.InvisibleItems = False
               pdfex.Margins = New System.Drawing.Printing.Margins(50, 50, 50, 50)
               pdfex.PageOrientation = PageOrientation.Landscape
               pdfex.PageSize = PageSize.Letter

               pdfex.Export(fc, savename)
           Catch ex As Exception
               Me.Cursor = Cursors.Cross
               MsgBox("File Save Error!", MsgBoxStyle.OkOnly + MsgBoxStyle.ApplicationModal + MsgBoxStyle.Exclamation, "Juno Error")
           End Try

The try catch block does NOT catch an error, it just seems to hang completely.  I can try to see if it times out somehow if you'd like.

Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #3 - Apr 7th, 2007 at 9:52am
Print Post  
Could you save the diagram as XML and email it to support@mindfusion.eu? Our developer will trace through the export code and see what the problem might be.

Thank you,
Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #4 - Apr 9th, 2007 at 10:41am
Print Post  
I will email shortly.

Oddly, it worked correctly on ALL diagrams with the demo code, and seems to work with NONE of the diagrams with the registered control.

I will attempt to find the simplest version that causes an issue.

Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #5 - Apr 9th, 2007 at 11:05am
Print Post  
Do you use the .NET 1.1 or .NET 2 versions of the control assemblies?

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #6 - Apr 9th, 2007 at 11:55am
Print Post  
We are using the .NET 2.0.

I did some more testing, and it is NOT hanging up completely, it is just taking 45-60 seconds to create and save the PDF.

I am sending a zip file with the chart as XML, the chart as output by SaveToFile(name), and the PDF output.

I'm just wondering if there is some sort of assembly collision that I'm running in to here.

Check support email shortly.

Jeff
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #7 - Apr 9th, 2007 at 12:18pm
Print Post  
Additional information.

The dll for PDFExport that works in the demo version of the control is tagged as 4.3.0.0

The dll from the registered version that seems to be taking a long time is tagged as version 4.3.0.2180
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #8 - Apr 9th, 2007 at 2:34pm
Print Post  
The export takes about 10 seconds on our 1.6 Ghz test system. That's still very slow, so we have traced the Export method with the debugger and found that most of the time is spent on processing some large box images. The only explanation we can think of is that accessing the image data on your system is slower, but we don't have any idea why. Try using smaller images - it seems they are scaled down anyway when displayed in the boxes. Meanwhile we'll try exporting your diagram on other systems of ours to see if we'll get that bad performance.

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #9 - Apr 9th, 2007 at 4:21pm
Print Post  
Hmmmm.

In the demo version, using exactly the same data and images it works like lightning.  The export to file and export to XML are similarly very fast.

I can scale the images, but the users like the detail when they zoom in to those modules.

I'm currently on a dual-core 2.4 GHz box (Pentium NOT Celeron) so I should not be slower than your 1.6GHz box.

I can zip up a test application and associated libraries if you would like.  I can even forward the source to the application, it simply reads the saved file in (the .jno), displays it, and allows for print / export to PDF.

If there is anything else that I can do to help please let me know.

Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #10 - Apr 10th, 2007 at 6:56am
Print Post  
We have tested exporting FIFRack_GA2062.jno to PDF from your application (using the dlls and viewer.exe from the bin folder), and it takes from 5 to 10 seconds on the systems we ran it. Do you get the 50 seconds delay only when running in debug mode, or also when running the .exe directly (or using Ctrl+F5 from VS)?

That image processing is required only when exporting images with transparent regions in them – the exporter creates some mask images used to create transparency in PDF. Since your images are opaque anyway, we could add a property that will let you disable the transparency processing, thus speeding up the export.

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #11 - Apr 10th, 2007 at 12:14pm
Print Post  
I have not tested the export from the EXE.  I will do that right now.

Adding a property to handle transparent image processing would be a nice addition.   Some of our charts include transparent images, but most do not.

I will report on testing results shortly.

Thank you again,
Jeff
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #12 - Apr 10th, 2007 at 12:18pm
Print Post  
I just tested the export from the EXE and it is acceptably quick.

I don't understand the speed difference between the executable and the IDE with the registered version of the export because the demo version exported under the IDE in about the same amount of time that the registered version takes in the EXE.

Hmmmmm ... just something to ponder.  I will also be doing a couple of minor changes to our export routine so that the file selection dialog does not hang on the screen while the export is in process, I'll display an animation, or something, while the export is in progress.

Thank you,
Jeff
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Upgrade and PDF Export
Reply #13 - Apr 10th, 2007 at 1:44pm
Print Post  
This might have something to do with different memory tracking and allocation in debug mode; loading that test file adds about 10MB to the process memory usage shown in the task manager, so that might have impact on the export if .NET adds some overhead to the memory writes when debugging. Though there isn't any difference between the trial and licensed versions, so we can't see a reason for the delay to exist only if running the licensed version through the debugger.

Stoyan
  
Back to top
 
IP Logged
 
jstraylor
Junior Member
**
Offline


I love YaBB 1G - SP1!

Posts: 50
Joined: Dec 28th, 2006
Re: Upgrade and PDF Export
Reply #14 - Apr 10th, 2007 at 6:12pm
Print Post  
Thanks for checking for me.  Since you guys don't seem to see a difference in speed between the debug version and the exe version it leads me to believe that I still have some sort of dll problem, self induced of course.

I'll run through my project an clean up any dll mess that I may still have hanging.

Thanks again for the great product and support,
Jeff
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint