Forum > FPvectorial

Can't compile fviewer example

(1/2) > >>

BlueIcaro:
Hello I'm trying to compile the last fpviewer dowloaded from svn, and I got this error:

--- Quote ---fpvv_mainform.pas(244,14) Error: Identifier not found "TvFormula"

--- End quote ---

I was looking for the definition of TvFormula throught the files and I didn't find it.

I using the last official release of Lazarus 1.0 RC1.

Any idea?

/BlueIcaro

reinerr:

--- Quote from: BlueIcaro on August 19, 2012, 01:49:57 pm ---fpvv_mainform.pas(244,14) Error: Identifier not found "TvFormula"

--- End quote ---

A couple of months passed but still valid...

I have same problem (now with Laz 1.0.2). My solution was to comment out that line (as well as the next error a couple of lines down). All this means is the View FPVectorial Tokens button won't work... but I couldn't open any dxf files properly anyway after that (either they display erroneous marks/dot or they crash on load for more complex files).

EDIT: green_rect_arrow_text.dxf opens ok

felipemdc:
The example is kept in synchrony with the latest Lazarus SVN sources, not with older releases like 1.0

CM630:
.I do try to compile fpvviewer.
I got it from here: https://svn.code.sf.net/p/lazarus-ccr/svn/applications/fpvviewer/
And I took fpvvectrorial.lpk from here: http://code.ohloh.net/project?pid=inrG8KdJiUI&did=components%2Ffpvectorial&cid=sIQrfQPsIho&fp=301989&projSelected=true


When I try to compile the app, I get the following error:
fpvv_mainform.pas(137,51) Error: identifier idents no member "GetPageAsVectorial" several times.

The content of one of the lines is: if checkForceWhiteBackground.Checked then Vec.GetPageAsVectorial(0).BackgroundColor := colWhite;
I get yet another error: fpvv_mainform.pas(337,19) Error: Identifier not found "TvPage"
on linelCurPage: TvPage;


Is GetPageAsVectorial an obsolete property?
Or could someone give me a working example on displaying a SVG or converting it to a raster image? Wiki examples are too far away from working, too.

EDIT: I replaced  GetPageAsVectorial(0) with GatPage(0) and TvPage withTvVectorialPage.

I tried to replace lCurPage.CalculateDocumentSize(); with lCurPage.GuessDocumentSize();  but it did not recognize GuessDocumentSize.
So, now when I load a document a press the Visualize button I see something. I have created an ellipse with InkScape, but I see a filled arc, instead.
I have attached the SVG file, if someone finds it useful.

djzepi:

--- Quote from: paskal on February 18, 2014, 10:09:15 am ---
So, now when I load a document a press the Visualize button I see something. I have created an ellipse with InkScape, but I see a filled arc, instead.
I have attached the SVG file, if someone finds it useful.

--- End quote ---

I looked like this (see attachment)

Navigation

[0] Message Index

[#] Next page

Go to full version