Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » RichText,QTF,RTF... » Printing PDF files in UPP
Re: Printing PDF files in UPP [message #18855 is a reply to message #18841] Tue, 28 October 2008 21:57 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3437
Registered: August 2008
Senior Veteran
Hello BioBytes

Here is a sample of Windows code to open "file". If file = "sample.pdf", this will open the file with Acrobat (if it is installed and it is the by default program to open pdf). For Linux there is also a way to do it.

#if defined(PLATFORM_WIN32)
	HINSTANCE ret;
	WString fileName(file);
	ret = ShellExecuteW(NULL, L"open", fileName, NULL, L".", SW_SHOWDEFAULT);
	return (long)ret > 32;
#endif


If this is what you want I have posted some functions in http://www.ultimatepp.org/forum/index.php?t=msg&goto=188 17&#msg_18817.
In 1-2 weeks I will post a version with more functions related with computer and OS issues working in Linux and Windows.

Best regards
Koldo


Best regards
IƱaki
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: QTF table and avoiding print of the internal border
Next Topic: Print directly to selected printer
Goto Forum:
  


Current Time: Wed Jun 11 04:42:36 CEST 2025

Total time taken to generate the page: 0.03964 seconds