Valentina reports - usage in program?
Claudius Obrecht
cobrecht at computerworks.ch
Mon Apr 4 09:48:37 CDT 2011
Hello,
thanks; it works now.
I specified a query string and database object.
One problem, the I_Disk_Location for the target (of the pdf) will not be created on another path than the application path. When take a path like the one from the vproject file, or from a file Dialog (QT) it doesn't work. Only when I write a file name, without path. ( FBL::CreateDiskLocation("/Users/claudiusobrecht/Desktop/report.pdf"); not working; only FBL::CreateDiskLocation("/report.pdf") works).
Thanks and best regards!
Am 04.04.2011 um 16:14 schrieb Ruslan Zasukhin:
> On 4/4/11 12:22 PM, "Claudius Obrecht" <cobrecht at computerworks.ch> wrote:
>
> Hi Claudius ,
>
> > I try to use VReport for a long time, and I have a big problem; I tried only
> > how I think it could work because I can't find any example, not in examples,
> > not on the web, in the wiki.... Can you tell me where I can find some examples
> > for C++ or give me some?
>
> C++ examples of VREPORT yet absent
> But it is quite trivial should be
>
> Do not worry, we will try to help you.
>
> > Here you can watch my code I tried:
> >
> > FBL::VReport_Init("","","");
>
> Does before this present
> FBL::Valentina_Init() ?
>
> It should be first currently
>
>
> > FBL::I_Disk_Location_Ptr report =
> > FBL::CreateDiskLocation("/Users/claudiusobrecht/Desktop/test.vsp");
>
> I'd name this not report, but pSomeProject
>
> > FBL::I_Disk_Location_Ptr report2 =
> > FBL::CreateDiskLocation("/Users/claudiusobrecht/Desktop/report.pdf");
>
>
> > FBL::I_VProject_Ptr pro = FBL::CreateVProject(report);
> > pro->Open();
>
> > FBL::I_VReport_Ptr pro2 = pro->MakeNewReport("Report_1",
> pReport_1 =
>
> > ((CLoopsFinanz*)qApp)->getMandant() );
>
> MakeNewReport(
> inIndex,
> dataSource->mpSqlDatabase,
> u_Query.c_str(),
> (VSQL::ECursorLocation) inCursorLocation,
> (VSQL::ELockType) inCursorType,
> (VSQL::ECursorDirection) inDirection );
>
>
> I do not see that you have specify
> a) Database
> c) Query String
>
>
>
> > if(pro2)
> > {
> > pro2->PrintToDisk(report2, FBL::kToPDF, 1, 1);
> > }
>
> > pro->Close();
>
>
> >
> > I tried many, many variations. The project file (test.vsp) is on the desktop
> > and there's no pdf file.
> > What is wrong there?
> >
> > Thank you very much!
>
> --
> Best regards,
>
> Ruslan Zasukhin
> VP Engineering and New Technology
> Paradigma Software, Inc
>
> Valentina - Joining Worlds of Information
> http://www.paradigmasoft.com
>
> [I feel the need: the need for speed]
---
ComputerWorks AG
Florenz-Strasse 1e
CH-4023 Basel
Tel. +41 (0)61 337 30 00
Dir. +41 (0)61 337 30 67
Fax +41 (0)61 337 30 01
cobrecht at computerworks.ch
www.computerworks.ch
Bausoftware - Buchhaltungssoftware - iPod-/iPhone-Zubehör - Mac-/PC-Peripherie
Vectorworks - CINEMA 4D - DELTAbauad - Google SktechUp - FastTrack Schedule
Alle Produkte, alle Infos, alle Preise. Jetzt im ComputerWorks-Onlinekatalog!
www.computerworks.ch/artikel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macserve.net/pipermail/valentina/attachments/20110404/b48cd635/attachment.htm>
More information about the Valentina
mailing list