U++ framework
Do not panic. Ask here before giving up.

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: 3464
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: Tue Oct 13 17:06:28 GMT+2 2026

Total time taken to generate the page: 0.00887 seconds