hi everyone, i'm moving my first steps in creating pages and codeunit web services, and i've done this little function, that creates the pdf of the purchase report.
fntprint(pTBPurchHead : Record "Purchase Header")
TXTFileName := 'C:\pdftest\';
TXTFileName += 'test.pdf';
REPORT.SAVEASPDF(402,TXTFileName,pTBPurchHead);
HYPERLINK(TXTFileName);
as you can see, it's really raw code, but it works like a charm in my little winform...the problem is that the hyperlink function does not work...why?
thanks in advance
P.S.: the HYPERLINK obviously work when called from an action in the page. it's just the webservice that doesn't work
-Mirko-
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
Answers
HYPELINK - running on the client...
If you have service tier on different server than client, you cannot do that... ;-)
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
TXTFileName := 'C:\pdftest\';
TXTFileName += 'test.pdf';
Shouldn't the first one be TXTFilePath? Or is that where the += comes in?
http://www.BiloBeauty.com
http://www.autismspeaks.org
as i said, it's just raw code to work a bit with web services...do you like it more if i write this? here's the blog if you want to take a look to a nice trick, but it's Off Topic...
http://blogs.msdn.com/b/freddyk/archive/2009/11/17/extending-page-web-services-and-creating-a-sales-order-again.aspx
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog
"{0:d}" is..........i don't know, i just copied it from somewhere... :whistle: :whistle:
P.S.: don't take this solution as a good example, because i don't know C#...there are probably better ways to solve this, but it works for my testing purposes
"Never memorize what you can easily find in a book".....Or Mibuso
My Blog